@@ -16,32 +16,35 @@ #import "OFException.h" OF_ASSUME_NONNULL_BEGIN +@class OFURL; + /*! * @class OFCreateSymbolicLinkFailedException \ * OFCreateSymbolicLinkFailedException.h \ * ObjFW/OFCreateSymbolicLinkFailedException.h * * @brief An exception indicating that creating a symbolic link failed. */ @interface OFCreateSymbolicLinkFailedException: OFException { - OFString *_sourcePath, *_destinationPath; + OFURL *_URL; + OFString *_target; int _errNo; } /*! - * The source for the symlink. + * The URL at which the symlink should have been created. */ -@property (readonly, nonatomic) OFString *sourcePath; +@property (readonly, nonatomic) OFURL *URL; /*! - * The destination for the symlink. + * The target for the symlink. */ -@property (readonly, nonatomic) OFString *destinationPath; +@property (readonly, nonatomic) OFString *target; /*! * The errno of the error that occurred. */ @property (readonly, nonatomic) int errNo; @@ -49,31 +52,31 @@ + (instancetype)exception OF_UNAVAILABLE; /*! * @brief Creates a new, autoreleased create symbolic link failed exception. * - * @param sourcePath The source for the symbolic link - * @param destinationPath The destination for the symbolic link + * @param URL The URL where the symlink should have been created + * @param target The target for the symbolic link * @param errNo The errno of the error that occurred * @return A new, autoreleased create symbolic link failed exception */ -+ (instancetype)exceptionWithSourcePath: (OFString *)sourcePath - destinationPath: (OFString *)destinationPath - errNo: (int)errNo; ++ (instancetype)exceptionWithURL: (OFURL *)URL + target: (OFString *)target + errNo: (int)errNo; - (instancetype)init OF_UNAVAILABLE; /*! * @brief Initializes an already allocated create symbolic link failed * exception. * - * @param sourcePath The source for the symbolic link - * @param destinationPath The destination for the symbolic link + * @param URL The URL where the symlink should have been created + * @param target The target for the symbolic link * @param errNo The errno of the error that occurred * @return An initialized create symbolic link failed exception */ -- (instancetype)initWithSourcePath: (OFString *)sourcePath - destinationPath: (OFString *)destinationPath - errNo: (int)errNo OF_DESIGNATED_INITIALIZER; +- (instancetype)initWithURL: (OFURL *)URL + target: (OFString *)target + errNo: (int)errNo OF_DESIGNATED_INITIALIZER; @end OF_ASSUME_NONNULL_END