Previous error lost prior to RESIGNAL

Item Value
SQLCODE -825
Constant SQLE_PREVIOUS_ERROR_LOST
SQLSTATE WP011
Sybase error code 13831
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

A RESIGNAL statement in an exception handler of a stored procedure was executed but the context of the previous error was unavailable. A possible cause of this error is a SELECT statement which returns a result set in the exception handler.