ERROR

Syntax

CATCH "ERROR

Explanation

ERROR is the error object used by error handling mechanism. See also CATCH and THROW.

If you catch an error, the system variable ERROR contains a short word describing the error which occured: Note that the variable ERROR always contains the last error which occured, unless you explicitly assign a different value to it.

Example

? HELLO

HELLO is not a Logo procedure.

? CATCH "ERROR [HELLO]

? :ERROR

Result: PROC

?