Io Error¶
Import: import system.io;
IoError¶
Filesystem / path failure implementing Error.
path¶
Path involved in the failure (may be empty for non-path errors).
constructor¶
Creates an error with path, machine code, and message.
message¶
Human-readable explanation of the I/O failure, suitable for logs and error output.
code¶
Stable machine code (ENOENT, EACCES, EIO, EEXIST, …).
not_found¶
File or directory does not exist.
permission_denied¶
Permission was denied for the operation.
other¶
Generic I/O failure with a custom message.
exists¶
Path already exists when exclusive create was requested.
closed¶
Creates an ECLOSED error for an operation on a closed resource.
invalid¶
Creates an EINVAL error for an invalid argument or operation.
cancelled¶
Cooperative cancellation (CancellationToken).