20.11 HAVE_ERRORS_OCCURRED Function

This function returns TRUE if (inline) errors have occurred and FALSE if no error has occurred.

Syntax

APEX_ERROR.HAVE_ERRORS_OCCURRED
RETURN BOOLEAN;

Example

This example only executes the statements of the IF statement if no error has been raised.

IF NOT apex_error.have_errors_occurred THEN
    ...
END IF;