Are all of the Oracle exceptions named?
- by John O
In particular, I've been trying to find the name of the ORA-0955 to improve code readability.
Currently I'm using the following:
EXCEPTION
WHEN OTHERS THEN
IF SQLCODE = -00955
What I would prefer is something like:
EXCEPTION
WHEN OBJECT_EXISTS THEN
This seems cleaner to me and I would prefer that. But I've looked in SYS.STANDARD, and it lists relatively few named exceptions. Online documentation seems to mirror what's in SYS.STANDARD. Is there another package to look in? Some other resource?