Error Set FindFileError [src]

Errors

AccessDenied FStatError

In WASI, this error may occur when the file descriptor does not hold the required rights to get its filestat information.

BrokenPipe ReadError
Canceled ReadError

reading a timerfd with CANCEL_ON_SET will lead to this error when the clock goes through a discontinuous change

ConnectionResetByPeer ReadError
ConnectionTimedOut ReadError
EndOfStream
InputOutput ReadError
IsDir ReadError
LockViolation ReadError

Unable to read file due to lock.

NotOpenForReading ReadError
OperationAborted ReadError
PermissionDenied FStatError
ProcessNotFound ReadError

This error occurs in Linux if the process to be read from no longer exists.

ReadFailed
SocketNotConnected ReadError
Streaming SizeError

Occurs if, for example, the file handle is a network socket and therefore does not have a size.

SystemResources FStatError
Unexpected UnexpectedError

The Operating System returned an undocumented error code.

This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.

When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.

Unseekable SeekError
WouldBlock ReadError

This error occurs when no global event loop is configured, and reading from the file descriptor would block.

ZipNoEndRecord

Source

pub const FindFileError = File.Reader.SizeError || File.SeekError || File.ReadError || error{ ZipNoEndRecord, EndOfStream, ReadFailed, }