Table of Contents

Struct TlsError

Namespace
Gio
Assembly
Gio-2.0.dll

Contains all error codes of the TlsError error-domain.

public readonly ref struct TlsError
Inherited Members

Constructors

TlsError(int)

Creates a new error in the TlsError domain with a given error code.

public TlsError(int errorCode)

Parameters

errorCode int

A specific error code of the domain

Properties

Any

Can be used to match a GException with any error code of the "TlsError" error-domain.

public static Quark Any { get; }

Property Value

Quark

BadCertificate

Can be used to match a GException with the "BadCertificate" code (2).

public static TlsError BadCertificate { get; }

Property Value

TlsError

BadCertificatePassword

Can be used to match a GException with the "BadCertificatePassword" code (8).

public static TlsError BadCertificatePassword { get; }

Property Value

TlsError

CertificateRequired

Can be used to match a GException with the "CertificateRequired" code (5).

public static TlsError CertificateRequired { get; }

Property Value

TlsError

Eof

Can be used to match a GException with the "Eof" code (6).

public static TlsError Eof { get; }

Property Value

TlsError

Handshake

Can be used to match a GException with the "Handshake" code (4).

public static TlsError Handshake { get; }

Property Value

TlsError

InappropriateFallback

Can be used to match a GException with the "InappropriateFallback" code (7).

public static TlsError InappropriateFallback { get; }

Property Value

TlsError

Misc

Can be used to match a GException with the "Misc" code (1).

public static TlsError Misc { get; }

Property Value

TlsError

NotTls

Can be used to match a GException with the "NotTls" code (3).

public static TlsError NotTls { get; }

Property Value

TlsError

Unavailable

Can be used to match a GException with the "Unavailable" code (0).

public static TlsError Unavailable { get; }

Property Value

TlsError

Operators

implicit operator ErrorCode(TlsError)

Converts a TlsError into a ErrorCode which can be used to match a GException.

public static implicit operator ErrorCode(TlsError e)

Parameters

e TlsError

Returns

ErrorCode