FileNotFoundException
open class FileNotFoundException : IOException
An exception thrown when a file or directory on the file system cannot be found.
-
The path of the file attempted to be accessed.
Declaration
Swift
public let filePath: String
-
Initializes a FileNotFoundException instance.
Declaration
Swift
public init(filePath:String, message:String? = nil, stackTrace:[String]? = nil)
Parameters
filePath
The file path attempting to be accessed.
message
A human-readable message explaining the error. Defaults to
No file could be found at the given path.
.stackTrace
The stack trace at the time the exception was thrown. Defaults to
Thread.callStackSymbols
. -
Declaration
Swift
open override func descriptionComponents() -> [String]