Error Set AddCertsFromFileError [src]

Errors

AccessDenied SeekError

In WASI, this error may occur when the file descriptor does not hold the required rights to seek on it.

BrokenPipe ReadError
Canceled ReadError

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

CertificateAuthorityBundleTooBig
CertificateFieldHasInvalidLength ParseError
CertificateFieldHasWrongDataType ParseTimeError
CertificateHasInvalidBitString ParseBitStringError
CertificateHasUnrecognizedObjectId ParseEnumError
CertificateTimeInvalid ParseTimeError
ConnectionResetByPeer ReadError
ConnectionTimedOut ReadError
InputOutput ReadError
InvalidCharacter Error
InvalidPadding Error
IsDir ReadError
LockViolation ReadError

Unable to read file due to lock.

MissingEndCertificateMarker
NoSpaceLeft Error
NotOpenForReading ReadError
OperationAborted ReadError
OutOfMemory Error
PermissionDenied FStatError
ProcessNotFound ReadError

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

SocketNotConnected ReadError
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
UnsupportedCertificateVersion ParseVersionError
WouldBlock ReadError

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

Source

pub const AddCertsFromFileError = Allocator.Error || fs.File.GetSeekPosError || fs.File.ReadError || ParseCertError || std.base64.Error || error{ CertificateAuthorityBundleTooBig, MissingEndCertificateMarker }