A script-enabled browser is required for this page to function properly.

ORA_JAVA.CLEAR_ERROR built-in procedure

This procedure removes the last error text retrieved by ORA_JAVA.LAST_ERROR.

Syntax

PROCEDURE ORA_JAVA.CLEAR_ERROR;

Example


/*
** Example of retrieving the value of an invalid 
   array element.
*/

PROCEDURE foo IS
  arr ORA_JAVA.JARRAY;
  n PLS_INTEGER;
BEGIN
  ...
  arr := ORA_JAVA.NEW_BYTE_ARRAY(5);
  n := ORA_JAVA.GET_BYTE_ARRAY_ELEMENT(arr, -1);
  ...
  EXCEPTION
  WHEN ORA_JAVA.JAVA_ERROR THEN
    OFM_MESSAGE(' Alert: ' || ORA_JAVA.last_error);
    ORA_JAVA.CLEAR_ERROR;
END;

See also

Handling Runtime Errors