OFException Class Reference
#import <OFExceptions.h>
List of all members.
Detailed Description
The OFException class is the base class for all exceptions in ObjFW.
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!
Member Function Documentation
- Returns:
- The class of the object in which the exception happened
- (id) initWithClass: |
|
(Class) |
class_ |
|
|
Initializes an already allocated OFException.
- Parameters:
-
| class_ | The class of the object which caused the exception |
- Returns:
- An initialized OFException
+ (id) newWithClass: |
|
(Class) |
class_ |
|
|
Creates a new exception.
- Parameters:
-
| class_ | The class of the object which caused the exception |
- Returns:
- A new exception
- Returns:
- An error message for the exception as a string
The documentation for this class was generated from the following files: