Darwin Help

Back to Index

traperror

Function traperror


Calling Sequence  traperror(exp)
Parameters
NameTypeDescription

exp expression 
Return Type  The result of evaluating exp or a string.
Synopsis If an error occurs while evaluating exp, the traperror function returns a string consisting of the Darwin error message. Execution does not halt. If no error occurs, traperror simply returns the result of evaluating exp.
Examples
> traperror( undefined_symbol/20 );
undefined_symbol, variable not assigned, invalid term in product
See also error,   lasterror