@@ -18,10 +18,12 @@ #import "OFOutOfMemoryException.h" #import "OFString.h" @implementation OFOutOfMemoryException +@synthesize requestedSize = _requestedSize; + + (instancetype)exceptionWithRequestedSize: (size_t)requestedSize { return [[[self alloc] initWithRequestedSize: requestedSize] autorelease]; } @@ -41,11 +43,6 @@ return [OFString stringWithFormat: @"Could not allocate %zu bytes!", _requestedSize]; else return @"Could not allocate enough memory!"; } - -- (size_t)requestedSize -{ - return _requestedSize; -} @end