Subject Re: [firebird-support] Catching GDSCODE in Stored Procedures?
Author Helen Borrie
At 02:43 PM 11/05/2004 +0200, you wrote:

> > >I thought this should work:
> > >
> > > WHEN GDSCODE 335544345 DO EXIT;
> > >
> > >But it doesn't, while this does work:
> > >
> > > WHEN GDSCODE lock_conflict DO EXIT;
> > True, WHEN gdscode always did work only with the symbols. Why? don't
>know.
>
>Strange... The InterBase documentation says:
>
>GDSCODE errcode An InterBase error code number
>
>What does the Firebird docs/book say?

The Firebird book has it right. :-) And supplies a full list of gdscodes
and their symbols, freshly generated from msg.gdb. Also here:
http://www.ibobjects.com/docs/fb_1_5_errorcodes.zip

/heLen