This type is used for the TDAScript.OnError event. 
Unit
DAScript
 Syntax
TOnErrorEvent = procedure (Sender: TObject; E: Exception; SQL: string; var Action: TErrorAction) of object;
Parameters
Sender
An object that raised the event. 
E
The error code. 
SQL
Holds the passed SQL statement. 
Action
The action to take when the OnError handler exits.