Occurs when SQL Server raises some error on Restore.
property OnError: TOnErrorEvent;
The OnError event occurs when SQL Server raises some error on Restore.
Action indicates the action to take when the OnError handler exits. On entry into the handler, Action is always set to eaException.
Note: You should add the DAScript module to the 'uses' list to use the OnError event handler.