Table of Contents

Class Fido2Exception

Namespace
Yubico.YubiKey.Fido2
Assembly
Yubico.YubiKey.dll

Exception that represents when the authenticator presents an unsuccessful FIDO2 status.

[Serializable]
public class Fido2Exception : Exception
Inheritance
object
Exception
Fido2Exception
Derived

Constructors

Fido2Exception()

Initializes a new instance of the Fido2Exception class.

public Fido2Exception()

Fido2Exception(SerializationInfo, StreamingContext)

protected Fido2Exception(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

serializationInfo SerializationInfo
streamingContext StreamingContext

Fido2Exception(string)

Initializes a new instance of the Fido2Exception class.

public Fido2Exception(string message)

Parameters

message string

The message that describes the error.

Fido2Exception(string, Exception)

Initializes a new instance of the Fido2Exception class.

public Fido2Exception(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

Fido2Exception(CtapStatus)

Initializes a new instance of the Fido2Exception class, and sets an appropriate message.

public Fido2Exception(CtapStatus status)

Parameters

status CtapStatus

The error status returned by the authenticator.

Fido2Exception(CtapStatus, string)

Initializes a new instance of the Fido2Exception class.

public Fido2Exception(CtapStatus status, string message)

Parameters

status CtapStatus

The CTAP error.

message string

The message that describes the error.

Properties

Status

The FIDO2 status returned by the authenticator.

public CtapStatus? Status { get; }

Property Value

CtapStatus?