Command: exception

Syntax

exception <assign> {,<assign> ...}

Description

Create one or more exception identifiers and (optionally) give them values.

Parameters

Switches

None

Notes

If no value if given, the identifier is initialized to an empty exception.

Exceptions created by the exception command are user-exceptions, as opposed to system exceptions which can be generated by the system.

Examples

Create a new unitialized exception identifier.

exception myex

Create a new exception identifier and initialize it with a function value.

exception bad_data_ex=error_exception('Bad Data',107)

See Also

Commands:

throw, try/catch

Functions:

error_exception, interrupt_exception, warning_exception

Identifiers:

throw_level

Structures:

exception