@@ -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_LINK /*! * @class OFLinkFailedException \ @@ -39,24 +37,28 @@ /*! * @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 * @return A new, autoreleased link failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + 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 + * @param errNo The errno of the error * @return An initialized link failed exception */ - initWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + destinationPath: (OFString*)destinationPath + errNo: (int)errNo; /*! * @brief Returns a string with the source for the link. * * @return A string with the source for the link