@@ -18,10 +18,13 @@ #import "OFReadOrWriteFailedException.h" #import "OFString.h" @implementation OFReadOrWriteFailedException +@synthesize object = _object, requestedLength = _requestedLength; +@synthesize errNo = _errNo; + + (instancetype)exceptionWithObject: (id)object requestedLength: (size_t)requestedLength { return [[[self alloc] initWithObject: object requestedLength: requestedLength] autorelease]; @@ -83,21 +86,6 @@ return [OFString stringWithFormat: @"Failed to read or write %zu bytes from / to an object of " @"type %@!", _requestedLength, [_object class]]; } - -- (id)object -{ - OF_GETTER(_object, true) -} - -- (size_t)requestedLength -{ - return _requestedLength; -} - -- (int)errNo -{ - return _errNo; -} @end