22OF_ASSUME_NONNULL_BEGIN
34 size_t _requestedLength;
42@property (readonly, nonatomic)
id object;
52@property (readonly, nonatomic)
int errNo;
65+ (instancetype)exceptionWithObject: (
id)object
66 requestedLength: (
size_t)requestedLength
69- (instancetype)
init OF_UNAVAILABLE;
80- (instancetype)initWithObject: (
id)object
81 requestedLength: (
size_t)requestedLength
82 errNo: (
int)errNo OF_DESIGNATED_INITIALIZER;
The base class for all exceptions in ObjFW.
Definition OFException.h:157
instancetype exception()
Creates a new, autoreleased exception.
Definition OFException.m:283
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
An exception indicating that reading from or writing to an object failed.
Definition OFReadOrWriteFailedException.h:32
size_t requestedLength
The requested length of the data that could not be read / written.
Definition OFReadOrWriteFailedException.h:47
int errNo
The errno of the error that occurred.
Definition OFReadOrWriteFailedException.h:52