Class ApduException
The exception that is thrown when an ISO 7816 application has encountered an error.
[Serializable]
public class ApduException : Exception
- Inheritance
-
objectExceptionApduException
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
SerializationInfostreamingContext
StreamingContext
ApduException(string)
Initializes a new instance of the ApduException class with a specified error message.
public ApduException(string message)
Parameters
message
stringThe 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
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
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.