@@ -14,11 +14,11 @@ * file. */ #import "OFException.h" -#ifdef OF_HAVE_SYMLINK +#if defined(OF_HAVE_SYMLINK) || defined(OF_WINDOWS) /*! * @class OFCreateSymbolicLinkFailedException \ * OFCreateSymbolicLinkFailedException.h \ * ObjFW/OFCreateSymbolicLinkFailedException.h * @@ -48,17 +48,38 @@ /*! * @brief Creates a new, autoreleased create symbolic link failed exception. * * @param sourcePath The source for the symbolic link * @param destinationPath The destination for the symbolic link + * @return A new, autoreleased create symbolic link failed exception + */ ++ (instancetype)exceptionWithSourcePath: (OFString*)sourcePath + destinationPath: (OFString*)destinationPath; + +/*! + * @brief Creates a new, autoreleased create symbolic link failed exception. + * + * @param sourcePath The source for the symbolic link + * @param destinationPath The destination for the symbolic link * @param errNo The errno of the error that occurred * @return A new, autoreleased create symbolic link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath destinationPath: (OFString*)destinationPath errNo: (int)errNo; +/*! + * @brief Initializes an already allocated create symbolic link failed + * exception. + * + * @param sourcePath The source for the symbolic link + * @param destinationPath The destination for the symbolic link + * @return An initialized create symbolic link failed exception + */ +- initWithSourcePath: (OFString*)sourcePath + destinationPath: (OFString*)destinationPath; + /*! * @brief Initializes an already allocated create symbolic link failed * exception. * * @param sourcePath The source for the symbolic link