PDA

View Full Version : Exeption handling



kovy
Oct 20th, 2006, 01:37 AM
goodmoring to you all,

I have a question regarding the exception handling of the DAO's!!
I created a facade implementation that extends a service class to contains
all dao's at his disposal. This for easy use in my facade. Each method called
in that facade run in a transaction.

Now if for some reason i get an exception from the DAO (Does not matter of which type). I which to log this message and that the facade does not automatically fail. My facade methods are called by a delegate which in his turn receives exception. But my delegate should not get IBATIS DAO exceptions but Facade exceptions.

Could anyone point me in the right direction or give his opinion for exception handling of these dao errors as well as my facade exceptions?

thnx in advance

mag_gandalf
Oct 20th, 2006, 01:45 AM
Look at this article, i think it can help you.

http://today.java.net/pub/a/today/2006/04/06/exception-handling-antipatterns.html