ERROR


stack
Since v1.2.11
Available on all platforms

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.

Signature

Examples

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