@@ -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 OFMoveItemFailedException \ * OFMoveItemFailedException.h ObjFW/OFMoveItemFailedException.h @@ -38,24 +36,28 @@ /*! * @brief Creates a new, autoreleased move item failed exception. * * @param sourcePath The original path * @param destinationPath The new path + * @param errNo The errno of the error * @return A new, autoreleased move item failed exception */ + (instancetype)exceptionWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + destinationPath: (OFString*)destinationPath + errNo: (int)errNo; /*! * @brief Initializes an already allocated move item failed exception. * * @param sourcePath The original path * @param destinationPath The new path + * @param errNo The errno of the error * @return An initialized move item failed exception */ - initWithSourcePath: (OFString*)sourcePath - destinationPath: (OFString*)destinationPath; + destinationPath: (OFString*)destinationPath + errNo: (int)errNo; /*! * @brief Returns the original path. * * @return The original path