OFException Class Reference

The base class for all exceptions in ObjFW. More...

#import <OFExceptions.h>

Inheritance diagram for OFException:
OFObject OFAcceptFailedException OFAddressTranslationFailedException OFAlreadyConnectedException OFBindFailedException OFChangeFileModeFailedException OFChangeFileOwnerFailedException OFConnectionFailedException OFCopyFileFailedException OFCreateDirectoryFailedException OFDeleteDirectoryFailedException OFDeleteFileFailedException OFEnumerationMutationException OFHashAlreadyCalculatedException OFInitializationFailedException OFInvalidArgumentException OFInvalidEncodingException OFInvalidFormatException OFLinkFailedException OFListenFailedException OFMalformedXMLException OFMemoryNotPartOfObjectException OFMutexLockFailedException OFMutexUnlockFailedException OFNotConnectedException OFNotImplementedException OFOpenFileFailedException OFOutOfMemoryException OFOutOfRangeException OFReadOrWriteFailedException OFRenameFileFailedException OFSeekFailedException OFSetOptionFailedException OFSymlinkFailedException OFThreadJoinFailedException OFThreadStartFailedException OFThreadStillRunningException

List of all members.

Public Member Functions

(id) - initWithClass:
(Class) - inClass
(OFString *) - string

Static Public Member Functions

(id) + newWithClass:

Protected Attributes

Class inClass
OFStringstring

Detailed 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!


Member Function Documentation

- (Class) inClass  
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
- (OFString*) string  
Returns:
An error message for the exception as a string

The documentation for this class was generated from the following files:
 All Classes Functions Variables
Generated on Sun May 9 16:52:21 2010 for ObjFW by  doxygen 1.6.3