intercept Command

Related Topics:

Event Specification Variables
unintercept Command

The intercept command throws (C++ exceptions) of the given type (C++ only). A thrown exception for which there is no matching catch is called an "unhandled" throw. A thrown exception that doesn't match the exception specification of the function it is thrown from is called an "unexpected" throw.

Unhandled and unexpected throws are intercepted by default.

Syntax

intercept typename Intercept throws of type typename.
intercept -a Intercept all throws.
intercept -x typename Do not intercept typename.
intercept -a -x typename Intercept all types except typename.
intercept List intercepted types.

where:

typename may be either -unhandled or -unexpected.