@@ -286,11 +286,11 @@ */ - (OFString*)mode; @end /** - * \brief An exception indicating a read or write to a file failed. + * \brief An exception indicating a read or write to a stream failed. */ @interface OFReadOrWriteFailedException: OFException { size_t req_size; int err; @@ -324,21 +324,35 @@ */ - (size_t)requestedSize; @end /** - * \brief An exception indicating a read on a file failed. + * \brief An exception indicating a read on a stream failed. */ @interface OFReadFailedException: OFReadOrWriteFailedException {} @end /** - * \brief An exception indicating a write to a file failed. + * \brief An exception indicating a write to a stream failed. */ @interface OFWriteFailedException: OFReadOrWriteFailedException {} @end +/** + * \brief An exception indicating that seeking in a stream failed. + */ +@interface OFSeekFailedException: OFException +{ + int err; +} + +/** + * \return The errno from when the exception was created + */ +- (int)errNo; +@end + /** * \brief An exception indicating that changing the mode of a file failed. */ @interface OFChangeFileModeFailedException: OFException {