This event occurs when an error has arisen in the connection.
property OnError: TDAConnectionErrorEvent;
Write the OnError event handler to respond to errors that arise with connection. Check the E parameter to get the error code. Set the Fail parameter to False to prevent an error dialog from being displayed and to raise the EAbort exception to cancel current operation. The default value of Fail is True.