Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to catch root exception?

807588Aug 12 2009 — edited Aug 12 2009
Hi

I am trying to catch root exception something like this .The root exception is Stale connection exception

try{

//code which throws stale connection exception with other user specific exceptions

}

Catch (Exception e){
if (e.getClass().getName().contains("com.ibm.websphere.ce.cm.StaleConnectionException")){

//handle exception

}

}

Is this right way to handle Stale connection exception.

Thanks and Regards
das
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2009
Added on Aug 12 2009
16 comments
336 views