FireDAC.Comp.Client.TFDCustomConnection.OnError

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

property OnError: TFDErrorEvent read FOnError write FOnError;

C++

__property Firedac::Stan::Error::TFDErrorEvent OnError = {read=FOnError, write=FOnError};

Description

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:

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.

See Also