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

src/pmc/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_severityunusedunusedOptional:
_C_file_C_line_P_file_P_lineunusedWhen an exception handler is called,
the exception object is passed as as the first argument,
the message as the second argument of the call.
These arguments can be retrieved with the get_results opcode.
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.
|
|
|