Algosim documentation: LastError

LastError

Returns the error raised by the previous evaluation.

Syntax

Description

If the previous evaluation raised an error, then LastError() returns this error. Otherwise, LastError() returns null.

Examples

sin(1, 2)
failure
Too many arguments.
Call stack: sin
ErrorInfo(LastError())
reason: Too many arguments.
source: sin
stack: (sin, LastError)

See also