17.8 APEX_ERROR.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;