Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL and exception handling
> I am trying to find out the best way to handle exceptions:
> EXCEPTION
> WHEN OTHERS THEN
> ...process exception...
> Does the above block of code detect most if not all errors which can
> occur with PL/SQL stored procedures and functions?
This is the "catch-all" for ANY exception that might occur.
Package STANDARD pre-defines these Oracle database exceptions:
CURSOR_ALREADY_OPEN -6511 DUP_VAL_ON_INDEX -0001 TIMEOUT_ON_RESOURCE -0051 INVALID_CURSOR -1001 NOT_LOGGED_ON -1012 LOGIN_DENIED -1017 NO_DATA_FOUND +100 ZERO_DIVIDE -1476 INVALID_NUMBER -1722 TOO_MANY_ROWS -1422 STORAGE_ERROR -6500 PROGRAM_ERROR -6501 VALUE_ERROR -6502
![]() |
![]() |