FireDAC.Comp.Script.TFDScript.OnError

From RAD Studio API Documentation
Jump to: navigation, search

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:

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.

See Also