17 #import "OFException.h" 19 OF_ASSUME_NONNULL_BEGIN
31 size_t _requestedLength;
38 @property (readonly, nonatomic)
id object;
48 @property (readonly, nonatomic)
int errNo;
61 + (instancetype)exceptionWithObject: (
id)object
62 requestedLength: (
size_t)requestedLength
65 -
init OF_UNAVAILABLE;
76 - initWithObject: (
id)object
77 requestedLength: (
size_t)requestedLength
78 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
An exception indicating that reading from or writing to an object failed.
Definition: OFReadOrWriteFailedException.h:28
size_t requestedLength
Definition: OFReadOrWriteFailedException.h:43
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
The base class for all exceptions in ObjFW.
Definition: OFException.h:143
int errNo
Definition: OFReadOrWriteFailedException.h:48
instancetype exception()
Creates a new, autoreleased exception.
Definition: OFException.m:250