Differences From Artifact [583fdc4f7f]:
- File src/exceptions/OFHTTPRequestFailedException.h — part of check-in [5854471001] at 2011-04-30 15:26:02 on branch trunk — Include the complete result in an OFHTTPRequestFailedException. (user: js, size: 1884) [annotate] [blame] [check-ins using]
To Artifact [1ca1bd68da]:
- File
src/exceptions/OFHTTPRequestFailedException.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: 1895) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
35 36 37 38 39 40 41 | /** * \param class_ The class of the object which caused the exception * \param request The HTTP request which failed * \param result The result of the failed HTTP request * \return A new HTTP request failed exception */ | | | | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | /** * \param class_ The class of the object which caused the exception * \param request The HTTP request which failed * \param result The result of the failed HTTP request * \return A new HTTP request failed exception */ + exceptionWithClass: (Class)class_ HTTPRequest: (OFHTTPRequest*)request result: (OFHTTPRequestResult*)result; /** * Initializes an already allocated HTTP request failed exception * * \param class_ The class of the object which caused the exception * \param request The HTTP request which failed * \param result The result of the failed HTTP request |
︙ | ︙ |