FORMAT_ERROR_BACKTRACE in the DBMS_UTILITY package has been introduced in the Oracle version 10g. Format error backtrace is use find the exact position where the exception has occurred.
When an exception is raised, one of the most important piece of information that a developer would like to know is the line of code that raised that exception for that we are using .
When an exception is raised, one of the most important piece of information that a developer would like to know is the line of code that raised that exception for that we are using .
FORMAT_ERROR_STACK
FORMAT_CALL_STACK
DECLARE BEGIN RAISE NO_DATA_FOUND; EXCEPTION WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.put_line ('Error occured at...'); DBMS_OUTPUT.put_line (DBMS_UTILITY.format_error_backtrace); RAISE; END;
Error occured at...
ORA-06512: at line 3
declare
*
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at line 8
No comments:
Post a Comment