@@ -26,11 +26,12 @@ */ @interface OFSeekFailedException: OFException { OFSeekableStream *_stream; OFStreamOffset _offset; - int _whence, _errNo; + OFSeekWhence _whence; + int _errNo; } /** * @brief The stream for which seeking failed. */ @@ -42,11 +43,11 @@ @property (readonly, nonatomic) OFStreamOffset offset; /** * @brief To what the offset is relative. */ -@property (readonly, nonatomic) int whence; +@property (readonly, nonatomic) OFSeekWhence whence; /** * @brief The errno of the error that occurred. */ @property (readonly, nonatomic) int errNo; @@ -60,11 +61,11 @@ * @param errNo The errno of the error that occurred * @return A new, autoreleased seek failed exception */ + (instancetype)exceptionWithStream: (OFSeekableStream *)stream offset: (OFStreamOffset)offset - whence: (int)whence + whence: (OFSeekWhence)whence errNo: (int)errNo; + (instancetype)exception OF_UNAVAILABLE; /** @@ -76,12 +77,12 @@ * @param errNo The errno of the error that occurred * @return An initialized seek failed exception */ - (instancetype)initWithStream: (OFSeekableStream *)stream offset: (OFStreamOffset)offset - whence: (int)whence + whence: (OFSeekWhence)whence errNo: (int)errNo OF_DESIGNATED_INITIALIZER; - (instancetype)init OF_UNAVAILABLE; @end OF_ASSUME_NONNULL_END