Exception Handling

Top  Previous  Next

There are three types of exception handling available for scripting, two are their own block of code, while the 3rd is tied to a BEGIN ... END block.

 

TRY ... EXCEPT - catch exception and handle it
TRY ... FINALLY - execute code whether exceptions occur or not
WHEN ... DO - tied to a BEGIN ... END block.

 

Examples are given in each of the corresponding syntax descriptions.