@@ -19,10 +19,12 @@ #import "OFGetOptionFailedException.h" #import "OFString.h" #import "OFStream.h" @implementation OFGetOptionFailedException +@synthesize stream = _stream, errNo = _errNo; + + (instancetype)exceptionWithStream: (OFStream*)stream errNo: (int)errNo { return [[[self alloc] initWithStream: stream errNo: errNo] autorelease]; @@ -55,16 +57,6 @@ { return [OFString stringWithFormat: @"Getting an option in a stream of type %@ failed: %@", [_stream class], of_strerror(_errNo)]; } - -- (OFStream*)stream -{ - OF_GETTER(_stream, true) -} - -- (int)errNo -{ - return _errNo; -} @end