This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "exception handling" Watch "exception handling" New topic

exception handling

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 580
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.
I agree. Here's the link:
subject: exception handling
It's not a secret anymore!