Error
enum Error : Swift.Error
An error that occurs during initialize and operations with Path
instances.
-
An indication that path cannot be resolved.
Declaration
Swift
case cannotResolvePath(_: String)
Parameters
path
The supplied path which is cannot be resolved.
-
An indication that a URL has unsupported scheme.
Declaration
Swift
case invalidURLScheme(_: String)
Parameters
scheme
The unsupported scheme.
-
An indication that user provided invalid argument value.
Declaration
Swift
case invalidArgumentValue(arg: String, _: String)
Parameters
arg
The name of invalid argument.
description
The error description.
-
An indication that destination path represents existing file. Tihs is used when you copy or move something to that location.
Declaration
Swift
case targetFileExist(_: String)
Parameters
path
The path of existing file.
-
Retrieve the localized description for this error.
Declaration
Swift
public var localizedDescription: String { get }