Exception messages in generated text must be more
meaningful.
For example, when nonoptional list have zero length
the following exception is thrown: new
IllegalArgumentException( "<name of list>" ).
Text messages in exceptions are not customizable (for
example, for localization) and don't allow to extract additional
info about a cause of exception. So, I propose to have
exception class inherited from IllegalArgumentException with
fields for object, attribute name and other useful info.
Such class provide default format of text message that can
be customized.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1130931
Text messages in exceptions are not customizable (for
example, for localization) and don't allow to extract additional
info about a cause of exception. So, I propose to have
exception class inherited from IllegalArgumentException with
fields for object, attribute name and other useful info.
Such class provide default format of text message that can
be customized.