@@ -12,12 +12,10 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ -#include - #import "OFException.h" #ifdef OF_HAVE_SYMLINK /*! * @class OFCreateSymbolicLinkFailedException \ @@ -40,25 +38,29 @@ /*! * @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 * @return A new, autoreleased create symbolic link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + 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 + * @param errNo The errno of the error * @return An initialized create symbolic link failed exception */ - initWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + destinationPath: (OFString*)destinationPath + errNo: (int)errNo; /*! * @brief Returns a string with the source for the symlink. * * @return A string with the source for the symlink