> > ie: com.ibm.websphere.cpi.CPIException: java.sql.SQLException: ORA-02291: > > integrity constraint (xxx.yyy_Szzzzz_FK) violated - parent > > key not found > > ; nested exception is: > > java.sql.SQLException: ORA-02291: integrity constraint > > > in this above stacktrace i need to write exception handling for only > > java.sql.SQLException
Do you mean this? try { ... ... } catch ( Exception e ) { if ( e.getCause() instanceof java.sql.SQLException ) { //Exception handling for sql... } else { throw e; } } -clapu ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html