@@ -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 OFRemoveItemFailedException \ * OFRemoveItemFailedException.h ObjFW/OFRemoveItemFailedException.h @@ -37,21 +35,25 @@ /*! * @brief Creates a new, autoreleased remove failed exception. * * @param path The path of the item which could not be removed + * @param errNo The errno of the error * @return A new, autoreleased remove item failed exception */ -+ (instancetype)exceptionWithPath: (OFString*)path; ++ (instancetype)exceptionWithPath: (OFString*)path + errNo: (int)errNo; /*! * @brief Initializes an already allocated remove failed exception. * * @param path The path of the item which could not be removed + * @param errNo The errno of the error * @return An initialized remove item failed exception */ -- initWithPath: (OFString*)path; +- initWithPath: (OFString*)path + errNo: (int)errNo; /*! * @brief Returns the path of the item which could not be removed. * * @return The path of the item which could not be removed