SYS(2410) - Error Handler
Returns the error handler type for an error. You can use SYS(2410) in your TRY...CATCH...FINALLY code to determine a course of action, for example, by using a DO CASE structure, depending on the type of handler that handles the exception.
SYS(2410)
Return Value
Character data type. The following table lists possible values returned by SYS(2410).
Value |
Description |
---|---|
0 |
System handler |
1 |
TRY...CATCH...FINALLY |
2 |
Error event |
3 |
ON ERROR command |
Remarks
If a TRY...CATCH...FINALLY structure does not contain any CATCH statements or CATCH statements in which the WHEN lExpression evaluates to True (.T.), SYS(2410) might erroneously return an incorrect value.