How to catch root exception?
807588Aug 12 2009 — edited Aug 12 2009Hi
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