RESIGNAL statement

The RESIGNAL statement re-throws the current exception (if there is one).

SYNTAX

RESIGNAL re-throws the current exception (if there is one). You can use it only in error handlers..

Typically, RESIGNAL is used when an error handler catches an exception that it can't handle. The handler uses RESIGNAL to re-throw the original exception so that a handler in higher-level scope has the opportunity to handle it.

Because the handler throws the original exception, rather than a new (and therefore different) one:
  1. The higher-level handler is not affected by the presence of the lower-level handler.
  2. If there is no higher-level handler, you get a full error report in the event log.

Example

RESIGNAL;
Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
DECLARE HANDLER statement
Syntax diagrams: available types
ESQL statements