Subject | Re: Check update succeeded |
---|---|
Author | flipmooooo |
Post date | 2005-02-10T10:52:27Z |
Hi,
EXCEPTION_MESSAGE that
holds the triggered exception and MessageText? My main SP containing
the
'WHEN EXCEPTION' clause consists of a number of other SP's where the
exceptions are triggered. So i need to change all my SP to pass the
msg back
to my main procedure.
Greetings,
Filip Moons
> Test the ROW_COUNT variable:Thanks :)
> IF (ROW_COUNT = 0) THEN ...
> DECLARE VARIABLE msg VARCHAR(80);There are no general KEYWORDS like EXCEPTION_NAME or
> BEGIN
> msg = 'Not good';
> IF (...) THEN EXCEPTION BAD_ENTRY :msg;
>
> msg = ''Better but still not right';
> IF (...) THEN EXCEPTION BAD_ENTRY :msg;
>
> WHEN EXCEPTION BAD_ENTRY DO
> INSERT LOG (...,MessageText,...) VALUES (..., :msg,...);
> END
EXCEPTION_MESSAGE that
holds the triggered exception and MessageText? My main SP containing
the
'WHEN EXCEPTION' clause consists of a number of other SP's where the
exceptions are triggered. So i need to change all my SP to pass the
msg back
to my main procedure.
Greetings,
Filip Moons