The base class for all exceptions in ObjFW. More...
#import <OFExceptions.h>
Public Member Functions | |
(id) | - initWithClass: |
(Class) | - inClass |
(OFString *) | - description |
Static Public Member Functions | |
(id) | + newWithClass: |
Protected Attributes | |
Class | inClass |
OFString * | description |
The base class for all exceptions in ObjFW.
The OFException class is the base class for all exceptions in ObjFW, except the OFAllocFailedException.
IMPORTANT: Exceptions do NOT use OFAutoreleasePools and can't be autoreleased either! You have to make sure to dealloc the exception in your @catch block!
- (Class) inClass |
- (id) initWithClass: | (Class) | class_ |
Initializes an already allocated OFException.
class_ | The class of the object which caused the exception |
+ (id) newWithClass: | (Class) | class_ |
Creates a new exception.
class_ | The class of the object which caused the exception |