ObjFW
Public Member Functions | Static Public Member Functions
OFOpenFileFailedException Class Reference

An exception indicating a file couldn't be opened. More...

#import <OFOpenFileFailedException.h>

Inheritance diagram for OFOpenFileFailedException:
OFException OFObject <OFObject>

List of all members.

Public Member Functions

(id) - initWithClass:path:mode:
(int) - errNo
(OFString *) - path
(OFString *) - mode

Static Public Member Functions

(id) + exceptionWithClass:path:mode:

Detailed Description

An exception indicating a file couldn't be opened.


Member Function Documentation

- (int) errNo
Returns:
The errno from when the exception was created
+ (id) exceptionWithClass: (Class)  class_
path: (OFString*)  path
mode: (OFString*)  mode 
Parameters:
class_The class of the object which caused the exception
pathA string with the path of the file tried to open
modeA string with the mode in which the file should have been opened
Returns:
A new open file failed exception
- (id) initWithClass: (Class)  class_
path: (OFString*)  path
mode: (OFString*)  mode 

Initializes an already allocated open file failed exception.

Parameters:
class_The class of the object which caused the exception
pathA string with the path of the file which couldn't be opened
modeA string with the mode in which the file should have been opened
Returns:
An initialized open file failed exception
- (OFString*) mode
Returns:
A string with the mode in which the file should have been opened
- (OFString*) path
Returns:
A string with the path of the file which couldn't be opened

The documentation for this class was generated from the following files:
 All Classes Functions Variables Properties