File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes pattern for exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "pattern for exceptions" Watch "pattern for exceptions" New topic

pattern for exceptions

karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi javaranchers
i wonder if there are patterns, recomendations and hints on how to deal with exceptions. where to catch them (rethrow them until some central exception manager, handle them where they occur...)

thanks for your hints and ideas!
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi Karl,
There is a very good paper on the subject on the IBM developerWorks website. The focus in on handling exceptions in EJB, but I think the whole concept could be applied to other Java applications as well.
Best practices in EJB exception handling
There are additional articles on the Java Practices web site.
However, do not take for granted all "best-practices" as some may not apply or be relevant to your own application.
Best regards
Hope this helps
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi Beno�t

thanks for the links.
the article from ibm was intersting and helped me....i still have to think about....

I agree. Here's the link:
subject: pattern for exceptions
It's not a secret anymore!