Class MalformedYubiKeyResponseException
The exception thrown when the data received from the YubiKey does not match the expectations of the response class's parser.
[Serializable]
public class MalformedYubiKeyResponseException : Exception
- Inheritance
-
objectExceptionMalformedYubiKeyResponseException
Constructors
MalformedYubiKeyResponseException()
Initializes a new instance of the MalformedYubiKeyResponseException class.
public MalformedYubiKeyResponseException()
MalformedYubiKeyResponseException(SerializationInfo, StreamingContext)
protected MalformedYubiKeyResponseException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
serializationInfo
SerializationInfostreamingContext
StreamingContext
MalformedYubiKeyResponseException(string)
Initializes a new instance of the MalformedYubiKeyResponseException class.
public MalformedYubiKeyResponseException(string message)
Parameters
message
stringThe message that describes the error.
MalformedYubiKeyResponseException(string, Exception)
Initializes a new instance of the MalformedYubiKeyResponseException class.
public MalformedYubiKeyResponseException(string message, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference (
Nothing
in Visual Basic) if no inner exception is specified.
Properties
ActualDataLength
Gets or sets the actual length of the data received from the YubiKey.
public int? ActualDataLength { get; set; }
Property Value
- int?
The actual length of the data.
DataErrorIndex
Gets or sets the index into the data field where the parsing error occurred, if known.
public int? DataErrorIndex { get; set; }
Property Value
- int?
The index of the data error.
ExpectedDataLength
Gets or sets the expected length of the data for this response.
public int? ExpectedDataLength { get; set; }
Property Value
- int?
The expected length of the data.
ResponseClass
Gets or sets the name of the IYubiKeyResponse implementation class.
public string? ResponseClass { get; set; }
Property Value
- string
The name of the class throwing the error.