Subject Re: [ib-support] How get IB Error?
Author Paul Reeves
enio_bueno wrote:
>
> In my app I use:
> try
> stp.ExecProc;
> except
> on E: Exception do ShowMessage(E.Message);
> end;
>
> If I perform the same stored with same parameters directly in
> IBConsole I receive this message error [Violation of FOREIGN KEY
> constraint "FK_EXAME_MEDICO" on table "EXAME"].
>
> How can I get the second message in Delphi?
>

What middleware are you using? There should be a subclass that extends the
exception object - try calling that instead.


Paul

--

Paul Reeves
http://www.ibphoenix.com
taking InterBase further