Previous error lost prior to RESIGNAL

Error constant SQLE_PREVIOUS_ERROR_LOST
ODBC 2 State ERROR
ODBC 3 State ERROR
Severity 16
SQLCODE –825
SQLSTATE WP011
Sybase error code 13831
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 that returns a result set in the exception handler.