catch
MudOSa4DGD/mudlib/dgd/doc/kfun/catch · 584 B
From the archive MudOSa4DGD-30.06.98.tar.gz
Download the archive « Back to the archive contents
NAME catch - catch errors in code SYNOPSIS string catch(expression) DESCRIPTION Execute the code for <expression> until an error results, or until execution is complete. If an error resulted, catch() will return the error message as a string; otherwise, it will return 0. ERRORS A limited number of nested catches is allowed. The limit is implementation-defined, and should be sufficient for ordinary purposes. SEE ALSO kfun/error NOTE catch() is not a real kfun. catch(a, b) will evaluate the expression (a, b), rather than "call catch() with arguments a and b".