Subject Re: [ib-support] Raising exceptions from a UDF
Author Martijn Tonies
Hi,

> it's the first time I run into the need to raise an exception from a
> UDF; I have seen that my "raise" (I am using Delphi, BTW) is
> translated by the server into a message "a fatal exception occurred
> during the execution of a UDF...", which is not that bad but there's
> room to improve.
> I was wondering if there is any way to return a more useful (i.e.
> detailed) error message. InterBase exceptions are out of question here, am
I right?

Right.


The best way I can think of is returning some kind of error code
and that your procedure will translate that code into something
useful.


With regards,

Martijn Tonies
InterBase Workbench - the developer tool for InterBase & Firebird
Firebird Workbench - the developer tool for Firebird
Upscene Productions
http://www.upscene.com

"This is an object-oriented system.
If we change anything, the users object."