Exception 2005-11-02 - By SUBSCRIBE EJB-INTEREST anonymous
Back Hi, I have a question. I catch the SQLException and throw it as DataAccessException like below. catch(SQLException ex) { throw new DataAccessException(sql.getErrorCode(),ex);
}
My question is I catch the DataAccessException and rethrow it as some other exception (say,ExceptionA).Catch ExceptionA and rethrow it as ExceptionB. My question is I want to get the sqlcode in ExceptionB. Is there any way to do it other than passing the errorcdoe in all the exception constructors.
Thanks in advance,
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
|
|