@@ -14,11 +14,11 @@ * file. */ #import "OFException.h" -#ifdef OF_HAVE_LINK +#if defined(OF_HAVE_LINK) || defined(OF_WINDOWS) /*! * @class OFLinkFailedException \ * OFLinkFailedException.h ObjFW/OFLinkFailedException.h * * @brief An exception indicating that creating a link failed. @@ -45,19 +45,39 @@ @property (readonly) int errNo; /*! * @brief Creates a new, autoreleased link failed exception. * + * @param sourcePath The source for the link + * @param destinationPath The destination for the link + * @return A new, autoreleased link failed exception + */ ++ (instancetype)exceptionWithSourcePath: (OFString*)sourcePath + destinationPath: (OFString*)destinationPath; + +/*! + * @brief Creates a new, autoreleased link failed exception. + * * @param sourcePath The source for the link * @param destinationPath The destination for the link * @param errNo The errno of the error that occurred * @return A new, autoreleased link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; +/*! + * @brief Initializes an already allocated link failed exception. + * + * @param sourcePath The source for the link + * @param destinationPath The destination for the link + * @return An initialized link failed exception + */ +- initWithSourcePath: (OFString*)sourcePath + destinationPath: (OFString*)destinationPath; + /*! * @brief Initializes an already allocated link failed exception. * * @param sourcePath The source for the link * @param destinationPath The destination for the link