| error | language | error |
error -- abort a task
error errcode errmsg
Error may be used to force an error exit from a script. The error message will be displayed, and control will return to the most recent interactive cl.
1. Abort the current task if there is an attempt to compute a negative square root.
if (x < 0) error (1, "sqrt of a negative number (x=" // x // ")") else y = sqrt (x)
There is currently no way to post an error handler to receive control if error is called.