Table of Contents

Class ApduException

Namespace
Yubico.Core.Iso7816
Assembly
Yubico.Core.dll

The exception that is thrown when an ISO 7816 application has encountered an error.

[Serializable]
public class ApduException : Exception
Inheritance
object
Exception
ApduException

Constructors

ApduException()

Initializes a new instance of the ApduException class with a default message.

public ApduException()

ApduException(SerializationInfo, StreamingContext)

protected ApduException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

serializationInfo SerializationInfo
streamingContext StreamingContext

ApduException(string)

Initializes a new instance of the ApduException class with a specified error message.

public ApduException(string message)

Parameters

message string

The message that describes the error.

ApduException(string, Exception)

Initializes a new instance of the ApduException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public ApduException(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, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Properties

Cla

Gets or sets the APDU class associated with this exception.

public byte? Cla { get; set; }

Property Value

byte?

The class value of the command APDU when the exception occurred.

Ins

Gets or sets the APDU instruction associated with this exception.

public byte? Ins { get; set; }

Property Value

byte?

The instruction of the command APDU when the exception occurred.

P1

Gets or sets the P1 parameter associated with this exception.

public byte? P1 { get; set; }

Property Value

byte?

The first parameter of the command APDU when the exception occurred.

P2

Gets or sets the P2 parameter associated with this exception.

public byte? P2 { get; set; }

Property Value

byte?

The second parameter of the command APDU when the exception occurred.

SW

Gets or sets the status word (SW), the ISO 7816 numerical value which represents the specific error or warning encountered.

public short? SW { get; set; }

Property Value

short?

The status word value. This can either be an industry defined error, or vendor defined.