Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

exception handling  RSS feed

 
anil bisht
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am throwing a user defined exception from the DAO. it is being caught in the calling bean.
after catching the specific exception in the bean i catch the general exception.
by the time the exception reaches the bean it gets converted to general exception. as a result it is caught in the general exception catch and not in the specific exception catch.
 
Susil Parida
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by the time the exception reaches the bean it gets converted to general exception.
Hi,
Can you elaborate bit more like Is there any appserver involved or EJB involved.
It may be that your User Defined Exception is comming trough a layer of EJB and getting converted to RemoteException<.So getting caught in general Exception block.
Please clarify, so that we reach at solution.
Cheers
[ January 13, 2003: Message edited by: Susil Parida ]
[ January 13, 2003: Message edited by: Susil Parida ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!