TErrorEvent = function (Sender: TObject; const Message: String):
Boolean of object
Available In: Client and Server Applications
The TErrorEvent type is used with the TApplicationOnError event to trap unhandled exceptions that have bubbled up to the global Application object in a visual application.
Return True from the event to indicate to the web browser that the error was handled, or False to indicate to the web browser that the error should be handled by the browser.