ErrorInfo
Catches a run-time error and converts it to an error information structure.
Syntax
-
ErrorInfo(expr)
-
expr
is an expression
-
Description
If expr
raises an error, then ExprInfo(expr)
catches this error and returns an error information (ErrorInfo
) structure containing information about the error; execution then resumes normally. If expr
doesn’t raise an error, ErrorInfo
returns null
.
Examples
ErrorInfo(∫(sin(t + √(1/t + 1)), t, 0, π))
reason: Floating point division by zero source: divide stack: (divide, add, sqrt, add, sin, integrate)