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
errorCodeintA 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
BadCertificate
Can be used to match a GException with the "BadCertificate" code (2).
public static TlsError BadCertificate { get; }
Property Value
BadCertificatePassword
Can be used to match a GException with the "BadCertificatePassword" code (8).
public static TlsError BadCertificatePassword { get; }
Property Value
CertificateRequired
Can be used to match a GException with the "CertificateRequired" code (5).
public static TlsError CertificateRequired { get; }
Property Value
Eof
Can be used to match a GException with the "Eof" code (6).
public static TlsError Eof { get; }
Property Value
Handshake
Can be used to match a GException with the "Handshake" code (4).
public static TlsError Handshake { get; }
Property Value
InappropriateFallback
Can be used to match a GException with the "InappropriateFallback" code (7).
public static TlsError InappropriateFallback { get; }
Property Value
Misc
Can be used to match a GException with the "Misc" code (1).
public static TlsError Misc { get; }
Property Value
NotTls
Can be used to match a GException with the "NotTls" code (3).
public static TlsError NotTls { get; }
Property Value
Unavailable
Can be used to match a GException with the "Unavailable" code (0).
public static TlsError Unavailable { get; }
Property Value
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
eTlsError