Function: error_exception

Syntax

error_exception (<text>, <code> {,<severity>})

Type

exception

Returns

A new user exception with details of a user error.

Parameters

Notes

There are 3 styles of exception: error, warning and interrupt. They behave identically and are differentiated only by style for user-analysis purposes.

The exception is initialized with a full command frame stack trace to aid with debugging.

Examples

Throw a user error.

throw error_exception('Invalid file',556)

See Also

Commands:

exception, throw, try/catch

Functions:

interrupt_exception, warning_exception

Identifiers:

throw_level (numeric)

Structures:

exception