Keypop Storage Card C++ API - 1.2.0
Component of the Keypop C++ API
keypop::storagecard::SCCardCommunicationException Class Referencefinal

Indicates an input/output error that occurred while communicating with the StorageCard. More...

#include <keypop/storagecard/SCCardCommunicationException.hpp>

Inheritance diagram for keypop::storagecard::SCCardCommunicationException:
Collaboration diagram for keypop::storagecard::SCCardCommunicationException:

Public Member Functions

 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 command. More...
 
 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 command, with an underlying cause. More...
 
std::shared_ptr< int > getBlockAddress () const override
 Returns the address of the block involved in the error, if applicable.
Returns
The block address that caused the error, or nullptr if not relevant.
Since
1.0.0
More...
 
- Public Member Functions inherited from keypop::storagecard::StorageCardException
 StorageCardException ()=default
 
 StorageCardException (const StorageCardException &)=default
 
 StorageCardException (StorageCardException &&)=default
 
StorageCardException & operator= (const StorageCardException &)=default
 
StorageCardException & operator= (StorageCardException &&)=default
 
virtual ~StorageCardException ()=default
 

Detailed Description

Indicates an input/output error that occurred while communicating with the StorageCard.

This exception reflects errors in the card communication process, such as transmission failures, card removal during processing, or any error preventing the expected response from the card.

It is also thrown when an automatic verification read, performed after a write operation on storage cards that do not provide reliable write acknowledgment, fails to confirm that the expected data was correctly stored.

Since
1.0.0

Definition at line 39 of file SCCardCommunicationException.hpp.

Constructor & Destructor Documentation

◆ SCCardCommunicationException() [1/2]

keypop::storagecard::SCCardCommunicationException::SCCardCommunicationException ( const std::shared_ptr< int > &  blockAddress,
const std::string &  message 
)
inline

Creates a new exception indicating a card communication error during the execution of a storage card command.

Parameters
blockAddressThe block address involved in the error, or nullptr if not relevant.
messageThe message describing the exception context.
Since
1.0.0

Definition at line 51 of file SCCardCommunicationException.hpp.

◆ SCCardCommunicationException() [2/2]

keypop::storagecard::SCCardCommunicationException::SCCardCommunicationException ( const std::shared_ptr< int > &  blockAddress,
const std::string &  message,
const std::exception &  cause 
)
inline

Creates a new exception indicating a card communication error during the execution of a storage card command, with an underlying cause.

Parameters
blockAddressThe block address involved in the error, or nullptr if not relevant.
messageThe message describing the exception context.
causeThe underlying cause of the exception.
Since
1.0.0

Definition at line 68 of file SCCardCommunicationException.hpp.

Member Function Documentation

◆ getBlockAddress()

std::shared_ptr< int > keypop::storagecard::SCCardCommunicationException::getBlockAddress ( ) const
inlineoverridevirtual

Returns the address of the block involved in the error, if applicable.

Returns
The block address that caused the error, or nullptr if not relevant.
Since
1.0.0

Since
1.0.0

Implements keypop::storagecard::StorageCardException.

Definition at line 83 of file SCCardCommunicationException.hpp.


The documentation for this class was generated from the following file: