16#include "keypop/reader/CardCommunicationException.hpp"
20namespace storagecard {
22using keypop::reader::CardCommunicationException;
52 const std::shared_ptr<int>& blockAddress,
const std::string& message)
53 : CardCommunicationException(message)
54 , mBlockAddress(blockAddress)
69 const std::shared_ptr<int>& blockAddress,
70 const std::string& message,
71 const std::exception& cause)
72 : CardCommunicationException(message, cause)
73 , mBlockAddress(blockAddress)
92 const std::shared_ptr<int> mBlockAddress;
Indicates an input/output error that occurred while communicating with the StorageCard.
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...
SCCardCommunicationException(const std::shared_ptr< int > &blockAddress, const std::string &message)
Creates a new exception indicating a card communication error during the execution of a storage card ...
SCCardCommunicationException(const std::shared_ptr< int > &blockAddress, const std::string &message, const std::exception &cause)
Creates a new exception indicating a card communication error during the execution of a storage card ...
Interface for exceptions occurring during the execution of a command on a StorageCard.