parrotcode: Exception PMC | |
Contents | PMCs |
src/classes/exception.pmc - Exception PMC
This is the exception base class.
As we are still lacking objects,
this class is based on a SArray
.
This will probably change.
An exception object has these attributes:
_message
_type
_severity
_P5
REG_PMC(5)
._return_cc
Optional:
_C_file
_C_line
_P_file
_P_line
When an exception handler is called,
the exception object is passed as REG_PMC(5)
,
the original contents of this register is in the exception object's _P5
attribute.
This is experimental code.
The enum_class
of the Exception
isn't fixed.
The interface isn't fixed.
void init()
STRING *get_string_keyed(PMC *key)
*key
.
The only current recognized key
is "_message".STRING *get_string()
INTVAL get_integer_keyed(PMC *key)
*key
.PMC *get_pmc_keyed(PMC *key)
*key
.void set_string_keyed(PMC *key, STRING *value)
*key
.void set_integer_keyed(PMC *key, INTVAL value)
*key
.void set_pmc_keyed(PMC *key, PMC *value)
*key
.INTVAL is_equal(PMC *value)
SELF
isa value
Initial revision by leo 2003.07.10.
|