public static enum SCardError.ErrorCodes
List of error codes
Enum Constant and Description |
---|
AUTHENTICATION_ERROR
The authentication between the library and the device has failed
|
BUSY
Device is Busy
|
CARD_ABSENT
Connect invoked, but there's no card in the slot
|
CARD_COMMUNICATION_ERROR
Transmit invoked, and no response from the card (the card is likely to have been removed during the exchange)
|
CARD_MUTE
A card is present, but it is unresponsive
|
CARD_POWERED_DOWN
Transmit invoked, but Disconnect has been called earlier
|
CARD_REMOVED
Transmit or Disconnect invoked, but the library is aware that the card has already been removed
|
COMMUNICATION_TIMEOUT
The underlying BLE device is still connected, but a CCID-level timeout has occurred
(no RDR_To_PC after a PC_To_RDR)
|
DEVICE_NOT_CONNECTED
The library has been called to instantiate a device (SCardReaderList object),
but the provided input parameter does not refer to a connected BLE device.
Or the underlying BLE device has been disconnected
|
DIALOG_ERROR
The device does not answer as expected
(ex: empty response to a SCardControl that is looking for the slot name)
|
DUMMY_DEVICE
The number of slots in CCID_Status is 0
|
ENABLE_CHARACTERISTIC_EVENTS_FAILED
The library has failed to enable the notifications or indications on a given characteristic
|
INVALID_CHARACTERISTIC_SETTINGS
One of the mandatory characteristics has not the expected settings
(for instance, read/write/notify flags not consistent with the implementation in the library)
|
INVALID_PARAMETER
Invalid parameter
|
INVALID_SERVICE_SETTINGS
One of the mandatory services has not the expected settings
(for instance, bonding flags not consistent with the implementation in the library)
|
MISSING_CHARACTERISTIC
One of the mandatory characteristics is missing from the device's GATT
|
MISSING_SERVICE
One of the mandatory services is missing from the device's GATT
|
NO_SUCH_SLOT
getReader invoked with an invalid parameter
|
OTHER_ERROR
Other error
|
PROTOCOL_ERROR
The format of the RDR_To_PC or CCID_Status characteristic is invalid
(unsupported opcode, bad length etc)
|
READ_CHARACTERISTIC_FAILED
The library has failed to read a given characteristic
|
SECURE_COMMUNICATION_ABORTED
The device has reported a secure communication on its side and is closing the communication
|
SECURE_COMMUNICATION_ERROR
Wrong CMAC or frame decipher failed
|
UNSUPPORTED_PRIMARY_SERVICE
The device's primary service is not supported by the library
|
WRITE_CHARACTERISTIC_FAILED
The library has failed to write a given characteristic
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Error code value
|
public static SCardError.ErrorCodes INVALID_PARAMETER
Invalid parameter
public static SCardError.ErrorCodes OTHER_ERROR
Other error
public static SCardError.ErrorCodes BUSY
Device is Busy
public static SCardError.ErrorCodes DEVICE_NOT_CONNECTED
The library has been called to instantiate a device (SCardReaderList object), but the provided input parameter does not refer to a connected BLE device. Or the underlying BLE device has been disconnected
public static SCardError.ErrorCodes UNSUPPORTED_PRIMARY_SERVICE
The device's primary service is not supported by the library
public static SCardError.ErrorCodes MISSING_SERVICE
One of the mandatory services is missing from the device's GATT
public static SCardError.ErrorCodes MISSING_CHARACTERISTIC
One of the mandatory characteristics is missing from the device's GATT
public static SCardError.ErrorCodes INVALID_SERVICE_SETTINGS
One of the mandatory services has not the expected settings (for instance, bonding flags not consistent with the implementation in the library)
public static SCardError.ErrorCodes INVALID_CHARACTERISTIC_SETTINGS
One of the mandatory characteristics has not the expected settings (for instance, read/write/notify flags not consistent with the implementation in the library)
public static SCardError.ErrorCodes ENABLE_CHARACTERISTIC_EVENTS_FAILED
The library has failed to enable the notifications or indications on a given characteristic
public static SCardError.ErrorCodes READ_CHARACTERISTIC_FAILED
The library has failed to read a given characteristic
public static SCardError.ErrorCodes WRITE_CHARACTERISTIC_FAILED
The library has failed to write a given characteristic
public static SCardError.ErrorCodes COMMUNICATION_TIMEOUT
The underlying BLE device is still connected, but a CCID-level timeout has occurred (no RDR_To_PC after a PC_To_RDR)
public static SCardError.ErrorCodes PROTOCOL_ERROR
The format of the RDR_To_PC or CCID_Status characteristic is invalid (unsupported opcode, bad length etc)
public static SCardError.ErrorCodes DIALOG_ERROR
The device does not answer as expected (ex: empty response to a SCardControl that is looking for the slot name)
public static SCardError.ErrorCodes DUMMY_DEVICE
The number of slots in CCID_Status is 0
public static SCardError.ErrorCodes AUTHENTICATION_ERROR
The authentication between the library and the device has failed
public static SCardError.ErrorCodes SECURE_COMMUNICATION_ERROR
Wrong CMAC or frame decipher failed
public static SCardError.ErrorCodes SECURE_COMMUNICATION_ABORTED
The device has reported a secure communication on its side and is closing the communication
public static SCardError.ErrorCodes NO_SUCH_SLOT
getReader invoked with an invalid parameter
public static SCardError.ErrorCodes CARD_ABSENT
Connect invoked, but there's no card in the slot
public static SCardError.ErrorCodes CARD_MUTE
A card is present, but it is unresponsive
public static SCardError.ErrorCodes CARD_REMOVED
Transmit or Disconnect invoked, but the library is aware that the card has already been removed
public static SCardError.ErrorCodes CARD_COMMUNICATION_ERROR
Transmit invoked, and no response from the card (the card is likely to have been removed during the exchange)
public static SCardError.ErrorCodes CARD_POWERED_DOWN
Transmit invoked, but Disconnect has been called earlier