FireDAC.Comp.Script.TFDScript.OnError
Delphi
property OnError: TFDErrorEvent read FOnError write FOnError;
C++
__property Firedac::Stan::Error::TFDErrorEvent OnError = {read=FOnError, write=FOnError};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | FireDAC.Comp.Script.pas FireDAC.Comp.Script.hpp |
FireDAC.Comp.Script | TFDScript |
Description
The event fires if an error occurs while the script engine is communicating with a DBMS.
The event handler of OnError receives the following parameters:
ASender
is the script.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 an exception raised while the script engine is communicating with a DBMS. You can even create a new exception object and assign it to AException
; if you do so, you must free the original exception object.
This event should not be used to produce an end-user output regarding the exceptions.