[Top] [Prev] [Next] [Bottom]


[Contents] [Index]

rescued - post-rescue action

rescued: fn(flag: int, s: string);

Description

The rescued function describes the action to be taken after an exception has been rescued. The action depends on the flag supplied to rescued.

Flags
ACTIVE Leave the handler installed; execution continues.
RAISE Re-raise this exception or raise a different one. The s argument is used only in the RAISE case. If s is nil, the same exception is re-raised. Otherwise, the action is the same as raise(s);
EXIT The thread exits.
ONCE Remove the handler; execution continues.

Example

if ( rescue("an exception", e) == HANDLER) {
	# normal execution code here
} else {
	# handler code here
	rescued(ONCE, nil);  # removes the handler
}


[Top] [Prev] [Next] [Bottom]

infernosupport@lucent.com
Copyright © 1997, Lucent Technologies, Inc.. All rights reserved.