Differences From Artifact [0409392fd7]:
- File src/exceptions/OFSetOptionFailedException.h — part of check-in [7ced2e7b6a] at 2011-03-24 21:17:29 on branch trunk — Pass the stream for stream exceptions. (user: js, size: 1364) [annotate] [blame] [check-ins using]
To Artifact [9e9fbb94e3]:
- File
src/exceptions/OFSetOptionFailedException.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: 1376) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
30 31 32 33 34 35 36 | @property (readonly, nonatomic) OFStream *stream; #endif /** * \param stream The stream for which the option could not be set * \return A new set option failed exception */ | | | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | @property (readonly, nonatomic) OFStream *stream; #endif /** * \param stream The stream for which the option could not be set * \return A new set option failed exception */ + exceptionWithClass: (Class)class_ stream: (OFStream*)stream; /** * Initializes an already allocated set option failed exception. * * \param stream The stream for which the option could not be set * \return An initialized set option failed exception */ |
︙ | ︙ |