| parrotcode: Exception PMC | |
| Contents | PMCs |

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_P5REG_PMC(5)._return_ccOptional:
_C_file_C_line_P_file_P_lineWhen 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.
|
|
|