Subject | Re: How to get last error message in a procedure 2 |
---|---|
Author | kimon_the_athenian2 |
Post date | 2005-05-03T06:20:51Z |
> occurred. You would need to create a table (sqlcode, gdscode,during
> text_of_message) in the database to look up the text of the message
> execution of your error handler.Thanks Helen!
Do I understand correctly that this way I could handle only firebird
error messages and not the message my own exceptions raised like this:
exception inconsistent_data 'Period start is after period end';
or
exception inconsistent_data 'Period start is NULL';
I wish I could catch these in another procedure which is using this
procedure and add more info to the message:
when any do
begin
exception inconsistent_data 'Problems when processing item no. '
|| :item_no || ', error was: ' || ?????;
end
... something like SQLERRM in Oracle.
now, is this possible in 1.5? (but what about 2.0?)
Aivar