|Oracle® Database PL/SQL Language Reference
11g Release 2 (11.2)
|PDF · Mobi · ePub|
EXCEPTION_INIT pragma can appear only in the same declarative part as its associated exception, anywhere after the exception declaration.
Name of a previously declared user-defined exception.
Error code to be associated with
error_code can be either 100 (the numeric code for "no data found" that "SQLCODE Function" returns) or any negative integer greater than -10000000 except -1403 (another numeric code for "no data found").
NO_DATA_FOUNDis a predefined exception.
EXCEPTION_INIT pragmas assign different error codes to the same user-defined exception, then the later pragma overrides the earlier pragma.