Differences From Artifact [f77723c6e0]:
- File src/exceptions/OFConditionSignalFailedException.h — part of check-in [b7142607c2] at 2011-03-25 15:48:50 on branch trunk — Pass the condition for condition exceptions. (user: js, size: 1542) [annotate] [blame] [check-ins using]
To Artifact [cdbb182805]:
- File
src/exceptions/OFConditionSignalFailedException.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: 1547) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
31 32 33 34 35 36 37 | #endif /** * \param class_ The class of the object which caused the exception * \param condition The condition which could not be signaled * \return A new condition signal failed exception */ | | | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #endif /** * \param class_ The class of the object which caused the exception * \param condition The condition which could not be signaled * \return A new condition signal failed exception */ + exceptionWithClass: (Class)class_ condition: (OFCondition*)condition; /** * Initializes an already allocated condition signal failed exception. * * \param class_ The class of the object which caused the exception * \param condition The condition which could not be signaled * \return An initialized condition signal failed exception |
︙ | ︙ |