Differences From Artifact [26ee57d0e2]:
- File src/exceptions/OFReadOrWriteFailedException.h — part of check-in [4814266280] at 2011-04-22 18:00:08 on branch trunk — More style improvements. (user: js, size: 2084) [annotate] [blame] [check-ins using]
To Artifact [360e4ce578]:
- File
src/exceptions/OFReadOrWriteFailedException.h
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 2093) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
38 39 40 41 42 43 44 | /** * \param class_ The class of the object which caused the exception * \param stream The stream which caused the read or write failed exception * \param length The requested length of the data that couldn't be read / * written * \return A new open file failed exception */ | | | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | /** * \param class_ The class of the object which caused the exception * \param stream The stream which caused the read or write failed exception * \param length The requested length of the data that couldn't be read / * written * \return A new open file failed exception */ + exceptionWithClass: (Class)class_ stream: (OFStream*)stream requestedLength: (size_t)length; /** * Initializes an already allocated read or write failed exception. * * \param class_ The class of the object which caused the exception * \param stream The stream which caused the read or write failed exception * \param length The requested length of the data that couldn't be read / |
︙ | ︙ |