Differences From Artifact [68f1a5ae2c]:
- File src/exceptions/OFChangeFileModeFailedException.h — part of check-in [e1eea29286] at 2011-03-24 16:09:40 on branch trunk — Split OFExceptions.{h,m} into one file per exception. (user: js, size: 1798) [annotate] [blame] [check-ins using]
To Artifact [9ff87f6941]:
- File
src/exceptions/OFChangeFileModeFailedException.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: 1802) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
36 37 38 39 40 41 42 | /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param mode The new mode for the file * \return An initialized change file mode failed exception */ | | | | | 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | /** * \param class_ The class of the object which caused the exception * \param path The path of the file * \param mode The new mode for the file * \return An initialized change file mode failed exception */ + exceptionWithClass: (Class)class_ path: (OFString*)path mode: (mode_t)mode; /** * Initializes an already allocated change file mode failed exception. * * \param class_ The class of the object which caused the exception * \param path The path of the file * \param mode The new mode for the file |
︙ | ︙ |