Exception
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,

