- Declared in:
- ETException.h
@group Language Extensions
Enable resumable and restartable exception handling. This only needs to be called once; subsequent calls will have no effect. If it is not called, then [NSException raise] will have the default behaviour.
Note: The OS X implementation of NSException does not conform to the documented behaviour. Resumable and restartable exceptions are not supported when using Apple's Foundation framework, unless exceptions are raised by creating an NSException object and then sending it a -raise message.
Removes the top exception handler from the stack corresponding to the name.
Adds aHandler to the top of the exception handling stack for exceptions named aName. Any exceptions called with the specified name will cause this handler to be invoked while it is on top of the exception handling stack.
Type of exception. Used as the return type from exception handlers. Abort causes stack unwinding. Resume continues execution after the line that raised the exception and retry causes the block that caused the exception to be retried, if it was declared as restartable.
Prototype for exception handler function.
Version of NS_DURING which permits restarts to occur if restartable exception is issued. In the event of a restartable exception being raised, control will jump to the start of this block. Care must be taken to avoid infinite loops and memory leaks.
End a restartable exception block. Equivalent to NS_HANDLER to be used with NS_RESTARTABLE_DURING.
Adds the specified handler for the named exception for the duraction of the current lexical scope.
Function installed as a cleanup function by SET_HANDLER to pop the added exception off the stack when the current lexical scope is exited.