Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

exception handling

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Spring 2.0,each business service in application throws several exceptions orderexception,creditdebitoverflowexception,dateou tdatedexception,etc.Each customised exception should extends exception super class


In service class should be as follow



each method service throw several exceptions ,so I like to remove the repetitive code as below



in baseexception ,declare all exception orderexception,creditdebitoverflowexception,dateou tdatedexception.PLease suggest how it can be done in spring.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic