@@ -38,10 +38,15 @@ */ - initWithObject: (id)obj; - free; +/** + * \return The object that caused the exception + */ +- (id)object; + /** * \return An error message for the exception as a C String */ - (char*)cString; @end @@ -127,24 +132,13 @@ /** * An OFException indicating the given value is out of range. */ @interface OFOutOfRangeException: OFException {} /** - * Creates a new out of range exception. - * - * \param obj The object which caused the exception - * \return A new out of range exception - */ -+ newWithObject: (id)obj; - -/** - * Initializes an already allocated out of range exception. - * - * \param obj The object which caused the exception - * \return An initialized out of range exception - */ -- initWithObject: (id)obj; + * \return An error message for the exception as a C String + */ +- (char*)cString; @end /** * An OFException indicating the file couldn't be opened. */ @@ -255,7 +249,28 @@ */ @interface OFWriteFailedException: OFReadOrWriteFailedException {} /** * \return An error message for the exception as a C String */ +- (char*)cString; +@end + +/** + * An OFException indicating a socket is not connected or bound. + */ +@interface OFNotConnectedException: OFException {} +/** + * \return An error message for the exception as a C string. + */ +- (char*)cString; +@end + +/** + * An OFException indicating an attempt to connect or bind an already connected + * or bound socket + */ +@interface OFAlreadyConnectedException: OFException {} +/** + * \return An error message for the exception as a C string. + */ - (char*)cString; @end