Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORACLE error codes
Alex Vinokur <alexander.vinokur_at_telrad.co.il> wrote in message
news:7uv06i$9vu$1_at_nnrp1.deja.com...
> In article <7uuoo4$fh9$1_at_neptunium.btinternet.com>,
> "-=< a q u a b u b b l e >=-"
> <aquabubble_at_Remove.No.Parma.Ham.Remove.geocities.com> wrote:
> [snip]
>
> > Why do you want to code for every error? Why don't you find the ones
> you
> > expect, and then code for WHEN OTHERS, finding out the error code and
> error
> > message using SQLERRM, etc.?
> >
> > HTH
> >
> >
>
> 1. I don't want to use hard code (1403).
> I'd prefer to use errors' mnemonic codes.
> 2. There is no problem to create enum containing such codes.
> 3. I'd prefer to use standard header file containing such
> mnemonic codes.
>
> Thanks
> Alex
Okay, well there are PL/SQL predefined exceptions that are defined in the STANDARD package. These are documented in Oracle's PL/SQL User's Guide and Reference, which you can find on TechNet at:
http://technet.oracle.com/doc/server.815/a67842/06_errs.htm
There are only about 20-30, which are:
ACCESS_INTO_NULL
COLLECTION_IS_NULL
CURSOR_ALREADY_OPEN
DUP_VAL_ON_INDEX INVALID_CURSOR INVALID_NUMBER
PROGRAM_ERROR ROWTYPE_MISMATCH SELF_IS_NULL STORAGE_ERROR
HTH Received on Sun Oct 24 1999 - 11:10:36 CDT