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

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

#include <OFReadOrWriteFailedException.h>

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

List of all members.

Public Member Functions

id initWithClass:stream:requestedSize: (Class class_,[stream] OFStream *stream,[requestedSize] size_t size)
OFStreamstream ()
size_t requestedSize ()
int errNo ()

Static Public Member Functions

id newWithClass:stream:requestedSize: (Class class_,[stream] OFStream *stream,[requestedSize] size_t size)

Properties

OFStreamstream
size_t requestedSize
int errNo

Detailed Description

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


Member Function Documentation

int OFReadOrWriteFailedException::errNo ( ) [virtual]
Returns:
The errno from when the exception was created
id OFReadOrWriteFailedException::initWithClass:stream:requestedSize: ( Class  class_,
[stream] OFStream stream,
[requestedSize] size_t  size 
) [virtual]

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
sizeThe requested size of the data that couldn't be read / written
Returns:
A new open file failed exception
id OFReadOrWriteFailedException::newWithClass:stream:requestedSize: ( Class  class_,
[stream] OFStream stream,
[requestedSize] size_t  size 
) [static, virtual]
Parameters:
class_The class of the object which caused the exception
streamThe stream which caused the read or write failed exception
sizeThe requested size of the data that couldn't be read / written
Returns:
A new open file failed exception
size_t OFReadOrWriteFailedException::requestedSize ( ) [virtual]
Returns:
The requested size of the data that couldn't be read / written
OFStream* OFReadOrWriteFailedException::stream ( ) [virtual]
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