OC SET ERROR HANDLER

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next

version 1.5


OC SET ERROR HANDLER (methodName)

ParameterTypeDescription
methodNameStringName of error handling method

Description

The OC SET ERROR HANDLER command installs an error handling method that is executed each time an error occurs. This enables you to control possible execution errors and override the default error handling.

methodName is the name of the method to install.

To return to the default behavior, pass an empty string such as OC SET ERROR HANDLER("").

4D ODBC will pass five arguments to your method:

ParametersTypeDescription
$1LongintError number
$2LongintError level
$3TextDescription of the error
$4Longint4D process ID
$5StringSQL Status of the error

To compile your database, you must declare the $1 to $5 variables using the C_LONGINT and C_TEXT commands.

By default, if no error handling method is installed, all errors are intercepted by 4D ODBC and an alert is displayed describing the error.


4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next