pub enum UemError {
Show 17 variants
PendingOperation,
UnsupportedFeature,
LostCommunicationData,
IncorrectParameter,
Unexpected,
Access,
NotTransacted,
IncorrectReaderName,
ReaderConnectionFailed,
ReaderNotConnected,
ReaderAlreadyConnected,
ReaderIncorrectResponse,
ReaderResponseFailure,
ReaderUnsuccessful(UemInternalError, Option<Vec<u8>>),
SamApdu,
SamInvalidMac,
SamAuthenticationFailed,
}Expand description
General errors for library methods
Variants§
PendingOperation
Indicates that current operation is still in progress
UnsupportedFeature
Indicates that the requested feature is not supported yet
LostCommunicationData
Indicates that communication channel has detected a problem with data consistency
IncorrectParameter
A method parameter has incorrect value
Unexpected
Some unexpected error occured
Access
Access to the requested feature is not granted
NotTransacted
Failed to transact data with a remote device
IncorrectReaderName
The supplied reader name is incorrect
ReaderConnectionFailed
Reader connection has been unsuccessful
ReaderNotConnected
Reader is not in connected state
ReaderAlreadyConnected
Reader is already connected
ReaderIncorrectResponse
There were errors in a reader response data
ReaderResponseFailure
Waiting for a reader response timed out
ReaderUnsuccessful(UemInternalError, Option<Vec<u8>>)
There is an internal error code received from a reader, followed by response vector (optional). Check error value.
SamApdu
There was an APDU responde error. It can be decoded using SAM documentation.
SamInvalidMac
Failed to check MAC signature while interacting with SAM module
SamAuthenticationFailed
Failed to authenticate with SAM module