As a good design practice the exception messages displayed on UI should be fetched from properties file. The exception should be thrown with error code than the message itself, in custom exception class(usually base class) the message should be fetched from properties file.
As a good design practice the exception messages displayed on UI should be fetched from properties file. The exception should be thrown with error code than the message itself, in custom exception class(usually base class) the message should be fetched from properties file.