Description:
Implements error handling.
Syntax:
try
{
try-statemens
{
catch(err)
{
catch-statements
}
try-statements |
Tracked script code |
err |
The object containing properties that can be used to identify additional details regarding the error.
See description of the Error object.
If the err parameter is not used in the catch-statements, then it does not need to be included in the catch - just specify catch(). |
catch-statements |
Script code executed while the error occured |
Note:
If an error occurs in any statement in the
try-statements section (e.g. division by zero, calling undefined method, ...), then the script is not terminated (the script would be terminated if the
try statement is not used), but it jumps into the
catch-statements section.
The whole statement consists of
try and
catch sections that are compulsory. There is also the
finally section that is not used by the PROMOTIC system and therefore not described in this documentation.
In the VBScript language is used the statement for this purpose
On Error.