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

An exception indicating a read or write to a stream failed. More...

#import <OFReadOrWriteFailedException.h>

Inheritance diagram for OFReadOrWriteFailedException:
OFException OFObject <OFObject> OFReadFailedException OFWriteFailedException

List of all members.

Public Member Functions

(id) - initWithClass:stream:requestedLength:
(OFStream *) - stream
(size_t) - requestedLength
(int) - errNo

Static Public Member Functions

(id) + exceptionWithClass:stream:requestedLength:

Detailed Description

An exception indicating a read or write to a stream failed.


Member Function Documentation

- (int) errNo
Returns:
The errno from when the exception was created
+ (id) exceptionWithClass: (Class)  class_
stream: (OFStream*)  stream
requestedLength: (size_t)  length 
Parameters:
class_The class of the object which caused the exception
streamThe stream which caused the read or write failed exception
lengthThe requested length of the data that couldn't be read / written
Returns:
A new open file failed exception
- (id) initWithClass: (Class)  class_
stream: (OFStream*)  stream
requestedLength: (size_t)  length 

Initializes an already allocated read or write failed exception.

Parameters:
class_The class of the object which caused the exception
streamThe stream which caused the read or write failed exception
lengthThe requested length of the data that couldn't be read / written
Returns:
A new open file failed exception
- (size_t) requestedLength
Returns:
The requested length of the data that couldn't be read / written
- (OFStream*) stream
Returns:
The stream which caused the read or write failed exception

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