Function: warning_exception

Syntax

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

Type

exception

Returns

A new user exception with details of a user warning.

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 warning.

throw warning_exception('The file is read-only',558,10)

See Also

Commands:

exception, throw, try/catch

Functions:

error_exception, interrupt_exception

Identifiers:

throw_level (numeric)

Structures:

exception