[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'SQLDB' (#fcl)

# TSQLScript.OnException

Exception handling event

## Declaration

Source position: sqldb.pp line 757

`published property TSQLScript.OnException;`

## Description

OnException can be set to handle an exception during the execution of a statement or directive when the script is executed. The exception is passed to the handler in the TheException parameter. On return, the value of the Continue parameter is checked: if it is set to True, then the exception is ignored. If it is set to False (the default), then the exception is re-raised, and script execution will stop.

## See also

TSQLScript.Execute |  | Execute the script.