Menu

#2 Exception messages in generated text must be more meaningful

open
all-x
TreeDL tool (2)
5
2005-03-11
2005-03-11
Anonymous
No

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>" ).

Discussion

  • all-x

    all-x - 2005-03-11

    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.

     
  • all-x

    all-x - 2005-03-11
    • labels: 683495 --> TreeDL tool
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.