I know how to trap known Exceptions, but how do I know what Exception occurred in the WHEN OTHERS part?
Is there a way to detect it so I can write it to my error log?
So if TOO_MANY_ROWS exception happen, at least I will know that much.
Have fun.
---- Andy
There is a great need for a sarcasm font.
Code:
EXCEPTION
WHEN NO_DATA_FOUND THEN
-- This Project Number is NOT in DB,
-- do something here
WHEN ZERO_DIVIDE THEN
-- I know what happened here
WHEN OTHERS THEN[red]
-- How do I know what has happened here?
-- Let me know which Exception happened here, please.[/red]
END;
Is there a way to detect it so I can write it to my error log?
So if TOO_MANY_ROWS exception happen, at least I will know that much.
Have fun.
---- Andy
There is a great need for a sarcasm font.