Loading

ERROR

stack

Pushes onto the stack a list containing the current error (as caught by a TRY) and its causes. Each error is a map with the following fields:

FieldDescription
typeType of the error, the Java class of the underlying exception
messageThe message associated with the error
stacktraceA list of lists, each containing filename, line number, class name, method name

The current error is the first element of the list.

If there is no current error, the returned list will be empty.

ERROR is available since version 1.2.11.

See also

Signatures

Examples

<% 2 0 / %> <% %> <% ERROR %> TRY