Keypop Storage Card C++ API - 1.2.0
Component of the Keypop C++ API
keypop::storagecard::StorageCardException Class Referenceabstract

Interface for exceptions occurring during the execution of a command on a StorageCard. More...

#include <keypop/storagecard/StorageCardException.hpp>

Inheritance diagram for keypop::storagecard::StorageCardException:

Public Member Functions

 StorageCardException ()=default
 
 StorageCardException (const StorageCardException &)=default
 
 StorageCardException (StorageCardException &&)=default
 
StorageCardException & operator= (const StorageCardException &)=default
 
StorageCardException & operator= (StorageCardException &&)=default
 
virtual ~StorageCardException ()=default
 
virtual std::shared_ptr< int > getBlockAddress () const =0
 Returns the address of the block involved in the error, if applicable. More...
 

Detailed Description

Interface for exceptions occurring during the execution of a command on a StorageCard.

It provides additional context about the block address involved in the error, when applicable.

Since
1.0.0

Definition at line 27 of file StorageCardException.hpp.

Constructor & Destructor Documentation

◆ StorageCardException() [1/3]

keypop::storagecard::StorageCardException::StorageCardException ( )
default

◆ StorageCardException() [2/3]

keypop::storagecard::StorageCardException::StorageCardException ( const StorageCardException &  )
default

◆ StorageCardException() [3/3]

keypop::storagecard::StorageCardException::StorageCardException ( StorageCardException &&  )
default

◆ ~StorageCardException()

virtual keypop::storagecard::StorageCardException::~StorageCardException ( )
virtualdefault

Member Function Documentation

◆ getBlockAddress()

virtual std::shared_ptr< int > keypop::storagecard::StorageCardException::getBlockAddress ( ) const
pure virtual

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

Implemented in keypop::storagecard::SCAuthenticationFailedException, keypop::storagecard::SCCardCommunicationException, keypop::storagecard::SCInvalidCardResponseException, and keypop::storagecard::SCReaderCommunicationException.

◆ operator=() [1/2]

StorageCardException & keypop::storagecard::StorageCardException::operator= ( const StorageCardException &  )
default

◆ operator=() [2/2]

StorageCardException & keypop::storagecard::StorageCardException::operator= ( StorageCardException &&  )
default

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