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
pathThe supplied path which is cannot be resolved.
-
An indication that a URL has unsupported scheme.
Declaration
Swift
case invalidURLScheme(_: String)Parameters
schemeThe unsupported scheme.
-
An indication that user provided invalid argument value.
Declaration
Swift
case invalidArgumentValue(arg: String, _: String)Parameters
argThe name of invalid argument.
descriptionThe 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
pathThe path of existing file.
-
Retrieve the localized description for this error.
Declaration
Swift
public var localizedDescription: String { get }
View on GitHub
Error Enumeration Reference