FireDAC.Comp.Client.TFDConnection.OnError
Delphi
property OnError: TFDErrorEvent read FOnError write FOnError;
C++
__property OnError;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDConnection |
Description
Fires before FireDAC raises an exception inside of the commands, associated commands or dataset methods of the connection.
FireDAC.Comp.Client.TFDConnection.OnError inherits from FireDAC.Comp.Client.TFDCustomConnection.OnError. All content below this line refers to FireDAC.Comp.Client.TFDCustomConnection.OnError.
Fires before FireDAC raises an exception inside of the commands, associated commands or dataset methods of the connection.
The event handler of OnError receives the following parameters:
ASender
is the connection.AInitiator
is the object that raises the exception.AException
is the exception. It is usually an instance of EFDDBEngineException.
You can handle OnError to analyze and modify the exception object. You can even create a new exception object and assign it to AException
; if you do so, you must free the original exception object.