NAME ^

src/pmc/exceptionhandler.pmc - Exception Handler PMC

DESCRIPTION ^

When an exception handler is called, the exception object is passed as REG_PMC(interp, 5), the original contents of this register is in the exception object's _P5 attribute.

Methods ^

void init()

Initializes the exception handler.

void set_integer_native(INTVAL)

Mark whether the handler has been invoked.

INTVAL get_integer()

Check whether the handler has been invoked.

opcode_t *invoke(void *next)

Set up the environment for the exception handler to be invoked.

Methods ^

METHOD can_handle(PMC *exception)

Report whether the exception handler can handle a particular type of exception.


parrot