FileSystemError
An error thrown as a result of interaction with the file system.
struct FileSystemError
All errors have a high-level Code
which identifies the domain of the error. For example an operation performed on a FileHandleProtocol
which has already been closed will result in a closed
error code. Errors also include a message describing what went wrong and how to remedy it (if applicable). The message
is not static and may include dynamic information such as the path of the file for which the operation failed, for example.
Errors may have a cause
, an underlying error which caused the operation to fail which may be platform specific.