@@ -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" /*! * @class OFCreateDirectoryFailedException \ * OFCreateDirectoryFailedException.h \ @@ -39,22 +37,26 @@ /*! * @brief Creates a new, autoreleased create directory failed exception. * * @param path A string with the path of the directory which could not be * created + * @param errNo The errno of the error * @return A new, autoreleased create directory failed exception */ -+ (instancetype)exceptionWithPath: (OFString*)path; ++ (instancetype)exceptionWithPath: (OFString*)path + errNo: (int)errNo; /*! * @brief Initializes an already allocated create directory failed exception. * * @param path A string with the path of the directory which could not be * created + * @param errNo The errno of the error * @return An initialized create directory failed exception */ -- initWithPath: (OFString*)path; +- initWithPath: (OFString*)path + errNo: (int)errNo; /*! * @brief Returns a string with the path of the directory which couldn't be * created. *