Differences From Artifact [97e9485df5]:
- File src/exceptions/OFConnectionFailedException.h — part of check-in [a8df2cff5f] at 2011-03-24 20:36:00 on branch trunk — Pass the socket for socket exceptions. (user: js, size: 2241) [annotate] [blame] [check-ins using]
To Artifact [1b2365cc81]:
- File
src/exceptions/OFConnectionFailedException.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: 2251) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
39 40 41 42 43 44 45 | /** * \param class_ The class of the object which caused the exception * \param socket The socket which could not connect * \param host The host to which the connection failed * \param port The port on the host to which the connection failed * \return A new connection failed exception */ | | | | | | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /** * \param class_ The class of the object which caused the exception * \param socket The socket which could not connect * \param host The host to which the connection failed * \param port The port on the host to which the connection failed * \return A new connection failed exception */ + exceptionWithClass: (Class)class_ socket: (OFTCPSocket*)socket host: (OFString*)host port: (uint16_t)port; /** * Initializes an already allocated connection failed exception. * * \param class_ The class of the object which caused the exception * \param socket The socket which could not connect * \param host The host to which the connection failed |
︙ | ︙ |