ObjFW
|
The base class for all exceptions in ObjFW. More...
#include <OFException.h>
Public Member Functions | |
id | initWithClass: (Class class_) |
Class | inClass () |
OFString * | description () |
Static Public Member Functions | |
id | newWithClass: (Class class_) |
Protected Attributes | |
OFString * | description |
Properties | |
Class | inClass |
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!
OFString* OFException::description | ( | ) | [virtual] |
Reimplemented from OFObject.
Class OFException::inClass | ( | ) | [virtual] |
id OFException::initWithClass: | ( | Class | class_ | ) | [virtual] |
Initializes an already allocated OFException.
class_ | The class of the object which caused the exception |
id OFException::newWithClass: | ( | Class | class_ | ) | [static, virtual] |
Creates a new exception.
class_ | The class of the object which caused the exception |