16#include "keypop/reader/CardCommunicationException.hpp"
20namespace storagecard {
22using keypop::reader::CardCommunicationException;
47 const std::shared_ptr<int>& blockAddress,
const std::string& message)
48 : CardCommunicationException(message)
49 , mBlockAddress(blockAddress)
64 const std::shared_ptr<int>& blockAddress,
65 const std::string& message,
66 const std::exception& cause)
67 : CardCommunicationException(message, cause)
68 , mBlockAddress(blockAddress)
87 const std::shared_ptr<int> mBlockAddress;
Indicates that an authentication attempt on a StorageCard has failed.
SCAuthenticationFailedException(const std::shared_ptr< int > &blockAddress, const std::string &message, const std::exception &cause)
Creates a new exception indicating an authentication failure during the execution of a storage card c...
SCAuthenticationFailedException(const std::shared_ptr< int > &blockAddress, const std::string &message)
Creates a new exception indicating an authentication failure during the execution of a storage card c...
std::shared_ptr< int > getBlockAddress() const override
Returns the address of the block involved in the error, if applicable.The block address that caused t...
Interface for exceptions occurring during the execution of a command on a StorageCard.