What is a named system exception?
|Oracle PLSQL named system exceptions|
Named system exceptions are exceptions that have been given names by PL/SQL. They are named in the STANDARD package in PL/SQL and do not need to be defined by the programmer.
Oracle has a standard set of exceptions already named as follows:
You tried to execute an INSERT or UPDATE statement that has created a duplicate value in a field restricted by a unique index.
You were waiting for a resource and you timed out.
The remote portion of a transaction has rolled back.
You tried to reference a cursor that does not yet exist. This may have happened because you’ve executed a FETCH cursor or CLOSE cursor before OPENing the cursor.
You tried to execute a call to Oracle before logging in.
You tried to log into Oracle with an invalid username/password combination.
You tried one of the following:
1. You executed a SELECT INTO statement and no rows were returned.
2. You referenced an uninitialized row in a table.
3. You read past the end of file with the UTL_FILE package.
You tried to execute a SELECT INTO statement and more than one row was returned.
You tried to divide a number by zero.
You tried to execute an SQL statement that tried to convert a string to a number, but it was unsuccessful.
You ran out of memory or memory was corrupted.
This is a generic “Contact Oracle support” message because an internal problem was encountered.
You tried to perform an operation and there was a error on a conversion, truncation, or invalid constraining of numeric or character data.
You tried to open a cursor that is already open.
Use syntax :
WHEN exception_name1 THEN
WHEN exception_name2 THEN
WHEN exception_name_n THEN
WHEN OTHERS THEN