@@ -203,10 +203,11 @@ */ @interface OFReadOrWriteFailedException: OFException { size_t req_size; size_t req_items; + BOOL has_items; } /** * Creates a new read or write failed exception. * @@ -217,10 +218,20 @@ */ + newWithObject: (id)obj andSize: (size_t)size andNItems: (size_t)nitems; +/** + * Creates a new read or write failed exception. + * + * \param obj The object which caused the exception + * \param size The requested size of the data that couldn't be read / written + * \return A new open file failed exception + */ ++ newWithObject: (id)obj + andSize: (size_t)size; + /** * Initializes an already allocated read or write failed exception. * * \param obj The object which caused the exception * \param size The requested size of the data that couldn't be read / written @@ -229,10 +240,20 @@ */ - initWithObject: (id)obj andSize: (size_t)size andNItems: (size_t)nitems; +/** + * Initializes an already allocated read or write failed exception. + * + * \param obj The object which caused the exception + * \param size The requested size of the data that couldn't be read / written + * \return A new open file failed exception + */ +- initWithObject: (id)obj + andSize: (size_t)size; + /** * \return The requested size of the data that couldn't be read / written */ - (size_t)requestedSize;