@@ -17,10 +17,11 @@ #include #import "OFObject.h" @class OFString; +@class OFURL; /** * \brief An exception indicating an object could not be allocated. * * This exception is preallocated, as if there's no memory, no exception can @@ -1227,21 +1228,21 @@ */ + newWithClass: (Class)class_ prefix: (OFString*)prefix; /** - * Initializes an already allocated unbound namespace failed exception + * Initializes an already allocated unbound namespace exception * * \param class_ The class of the object which caused the exception * \param ns The namespace which is unbound * \return An initialized unbound namespace exception */ - initWithClass: (Class)class_ namespace: (OFString*)ns; /** - * Initializes an already allocated unbound namespace failed exception + * Initializes an already allocated unbound namespace exception * * \param class_ The class of the object which caused the exception * \param prefix The prefix which is unbound * \return An initialized unbound namespace exception */ @@ -1256,5 +1257,42 @@ /** * \return The unbound prefix */ - (OFString*)prefix; @end + +/** + * \brief An exception indicating that the protocol specified by the URL is not + * supported. + */ +@interface OFUnsupportedProtocolException: OFException +{ + OFURL *URL; +} + +#ifdef OF_HAVE_PROPERTIES +@property (readonly, nonatomic) OFURL *URL; +#endif + +/** + * \param class_ The class of the object which caused the exception + * \param url The URL whose protocol is unsupported + * \return A new unsupported protocol exception + */ ++ newWithClass: (Class)class_ + URL: (OFURL*)url; + +/** + * Initializes an already allocated unsupported protocol exception + * + * \param class_ The class of the object which caused the exception + * \param url The URL whose protocol is unsupported + * \return An initialized unsupported protocol exception + */ +- initWithClass: (Class)class_ + URL: (OFURL*)url; + +/** + * \return The URL whose protocol is unsupported + */ +- (OFURL*)URL; +@end