@@ -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 - #include #import "OFException.h" /*! @@ -44,24 +42,28 @@ /*! * @brief Creates a new, autoreleased change permissions failed exception. * * @param path The path of the item * @param permissions The new permissions for the item + * @param errNo The errno of the error * @return A new, autoreleased change permissions failed exception */ + (instancetype)exceptionWithPath: (OFString*)path - permissions: (mode_t)permissions; + permissions: (mode_t)permissions + errNo: (int)errNo; /*! * @brief Initializes an already allocated change permissions failed exception. * * @param path The path of the item * @param permissions The new permissions for the item + * @param errNo The errno of the error * @return An initialized change permissions failed exception */ - initWithPath: (OFString*)path - permissions: (mode_t)permissions; + permissions: (mode_t)permissions + errNo: (int)errNo; /*! * @brief Returns the path of the item. * * @return The path of the item