Subject Re: [IBO] Catching user defined exceptions
Author Joshua Higgs
Thanks for your thoughts here Jason

Cheerio


Josh

> My thought here are that you can either pass the message you want
displayed
> from the exception itself and leave them all as a standard exception type
or
> you can pass a code in the exception text and then have the client
> application translate that code into the more appropriate class you want.
>
> One way of doing this would be to standardize your exceptions to have a
> prefix with an error code of your own making. Then, you can parse out the
> error message coming from the exception and look it up in your translation
> system and convert it from there.
>
> ErrorCodes are those coming from the API. This would be a nice feature you
> could suggest to the developers of Firebird or the Borland engineers.
>
> Jason