searchForExceptionHandler

fun searchForExceptionHandler(exceptionValue: AvailObject): Primitive.Result

Raise an exception. Scan the stack of continuations (which must have been reified already) until one is found for a function whose code specifies P_CatchException. Get that continuation's second argument (a handler block of one argument), and check if that handler block will accept the exceptionValue. If not, keep looking. If it accepts it, unwind the continuation stack so that the primitive catch method is the top entry, and invoke the handler block with exceptionValue. If there is no suitable handler block, fail the primitive.

Return

The success state.

Parameters

exceptionValue The exception object being raised.