@@ -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_CHOWN /*! * @class OFChangeOwnerFailedException \ @@ -40,27 +38,31 @@ * @brief Creates a new, autoreleased change owner failed exception. * * @param path The path of the item * @param owner The new owner for the item * @param group The new group for the item + * @param errNo The errno of the error * @return A new, autoreleased change owner failed exception */ + (instancetype)exceptionWithPath: (OFString*)path owner: (OFString*)owner - group: (OFString*)group; + group: (OFString*)group + errNo: (int)errNo; /*! * @brief Initializes an already allocated change owner failed exception. * * @param path The path of the item * @param owner The new owner for the item * @param group The new group for the item + * @param errNo The errno of the error * @return An initialized change owner failed exception */ - initWithPath: (OFString*)path owner: (OFString*)owner - group: (OFString*)group; + group: (OFString*)group + errNo: (int)errNo; /*! * @brief Returns the path of the item. * * @return The path of the item