16#include "keypop/reader/ReaderCommunicationException.hpp"
20namespace storagecard {
22using keypop::reader::ReaderCommunicationException;
35:
public ReaderCommunicationException,
48 const std::shared_ptr<int>& blockAddress,
const std::string& message)
49 : ReaderCommunicationException(message)
50 , mBlockAddress(blockAddress)
65 const std::shared_ptr<int>& blockAddress,
66 const std::string& message,
67 const std::exception& cause)
68 : ReaderCommunicationException(message, cause)
69 , mBlockAddress(blockAddress)
88 const std::shared_ptr<int> mBlockAddress;
Indicates an input/output error that occurred while communicating with the card reader.
SCReaderCommunicationException(const std::shared_ptr< int > &blockAddress, const std::string &message)
Creates a new exception indicating a reader communication error during the execution of a storage car...
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...
SCReaderCommunicationException(const std::shared_ptr< int > &blockAddress, const std::string &message, const std::exception &cause)
Creates a new exception indicating a reader communication error during the execution of a storage car...
Interface for exceptions occurring during the execution of a command on a StorageCard.