#import <ObjectiveLib/Exception.h>
Public Member Functions | |
| (const char *) | - message | 
| Return the message associated with this exception.   | |
| (void) | - raise | 
| Raise the exception.   | |
| (const char *) | - type | 
| Return the type or name of the exception.   | |
Initializers and Deallocatros  | |
| (id) | - free | 
| Deallocate memory and free the exception.   | |
| (id) | - initWithType:message: | 
| Initialize an exception.   | |
| (id) | - initWithType:message:arguments: | 
| Initialize an exception.   | |
Static Public Member Functions | |
| (void) | + raiseType:message: | 
| Raise an exception.   | |
| (void) | + raiseTypeString:messageString: | 
| Raise an exception.   | |
Protected Attributes | |
| char * | message | 
| The message to be delivered.   | |
| char * | type | 
| The type or name of the exception.   | |
| - (id) free | 
Deallocate memory and free the exception.
| - (id) initWithType: | (const char *) | nm | ||
| message: | (const char *) | msg | ||
| , | ... | |||
Initialize an exception.
The exception is given the name and its message. This message musters the variadic arguments and sends the message initWithType:message:arguments:.
| nm | the name or type of the exception | |
| msg | the message to convey | |
| ... | the variadic arguments to format into the message | 
| - (id) initWithType: | (const char *) | nm | ||
| message: | (const char *) | msg | ||
| arguments: | (va_list) | args | ||
Initialize an exception.
The exception is given the name and its message. The message is formatted by inserting the arguments into the message using printf style formatting.
| nm | the name or type of the exception | |
| msg | the message to convey | |
| args | the variadic arguments to format into the message | 
| - (const char*) message | 
Return the message associated with this exception.
| - (void) raise | 
Raise the exception.
The exception is raised and control is transferred to the next available block of code defined by OL_CATCH and OL_END_CATCH. If there is no catch block available, then the system will abort.
| + (void) raiseType: | (const char *) | nm | ||
| message: | (const char *) | msg | ||
| , | ... | |||
Raise an exception.
This is a convenience method for allocating, instantiating and rasing a new exception. See initWithType:message:arguments:.
| nm | the name or type of exception | |
| msg | the message that the exception should convey | |
| ... | the arguments used to format the message | 
| + (void) raiseTypeString: | (OLConstantString *) | nm | ||
| messageString: | (OLConstantString *) | msg | ||
| , | ... | |||
Raise an exception.
This is a convenience method for allocating, instantiating and rasing a new exception. The method initializes the eception with initWithType:message:arguments: by converting nm and msg into c-style "strings".
| nm | the name or type of exception | |
| msg | the message that the exception should convey | |
| ... | the arguments used to format the message | 
| - (const char*) type | 
Return the type or name of the exception.
- (char*) message [protected]           | 
        
The message to be delivered.
- (char*) type [protected]           | 
        
The type or name of the exception.
  |