TIB_ErrorEvent Type

Unit
IB_Session

Declaration

TIB_ErrorEvent = procedure(       Sender: TObject;
                            const ERRCODE: longint;
                                  ErrorMessage,
                                  ErrorCodes: TStringList;
                            const SQLCODE: longint;
                                  SQLMessage,
                                  SQL: TStringList;
                              var RaiseException: boolean ) of object;

Description
Event type for processing exception codes at the API level.

SQLCODE gives the isc_sqlcode() interpretation of the IB API exception code if one exists.

ERRCODE gives the native InterBase exception code.

ErrorMessages gives the InterBase isc_interprete() messages for all error messages in the Status vector.

ErrorCodes gives the InterBase error code for all codes in the Status vector.

RaiseException gives control over whether a Delphi exception should be raised or not. It is possible to simply call SysUtils.Abort to raise a silent exception immediatly. In most cases this should not be tampered with.