typedef void __fastcall (__closure *TDBXErrorEvent)(TDBXError* DBXError);
TDBXErrorEvent is an event handler that can be set on the TDBXConnection.OnErrorEvent property. This event is called just before a TDBXError exception is raised. This allows implementors to perform processing before the exception is raised. dbExpress VCL components use this event to raise an exception of a different type.