Keypop Card C++ API - 2.0.1
Component of the Keypop C++ API
keypop::card::CardBrokenCommunicationException Class Referencefinal

Exception carrying response data received from the card until a communication failure with the card occurs. More...

#include <keypop/card/CardBrokenCommunicationException.hpp>

Inheritance diagram for keypop::card::CardBrokenCommunicationException:
Collaboration diagram for keypop::card::CardBrokenCommunicationException:

Public Member Functions

 CardBrokenCommunicationException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message)
 Builds a new exception embedding card response data. More...
 
 CardBrokenCommunicationException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message, const std::shared_ptr< std::exception > cause)
 Builds a new exception embedding card response data with the originating exception. More...
 
- Public Member Functions inherited from keypop::card::AbstractApduException
 AbstractApduException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message)
 Builds a new exception embedding card response data. More...
 
 AbstractApduException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message, const std::shared_ptr< std::exception > cause)
 Builds a new exception embedding card response data with the originating exception. More...
 
const std::shared_ptr< CardResponseApi > getCardResponse () const
 Gets the response data received so far. More...
 
bool isCardResponseComplete () const
 Indicates if all the responses expected from the corresponding calypsonet::terminal::card::spi::CardRequestSpi have been received. More...
 
const std::string & getMessage () const
 

Detailed Description

Exception carrying response data received from the card until a communication failure with the card occurs.

Since
1.0.0

Definition at line 29 of file CardBrokenCommunicationException.hpp.

Constructor & Destructor Documentation

◆ CardBrokenCommunicationException() [1/2]

keypop::card::CardBrokenCommunicationException::CardBrokenCommunicationException ( const std::shared_ptr< CardResponseApi >  cardResponseApi,
const bool  isCardResponseComplete,
const std::string &  message 
)
inline

Builds a new exception embedding card response data.

Parameters
cardResponseApiThe card responses received so far.
isCardResponseCompleteTrue if the number responses equals the number of requests present in the original keypop::card::spi::CardRequestSpi.
messageMessage to identify the exception context.
Since
1.0.0

Definition at line 41 of file CardBrokenCommunicationException.hpp.

◆ CardBrokenCommunicationException() [2/2]

keypop::card::CardBrokenCommunicationException::CardBrokenCommunicationException ( const std::shared_ptr< CardResponseApi >  cardResponseApi,
const bool  isCardResponseComplete,
const std::string &  message,
const std::shared_ptr< std::exception >  cause 
)
inline

Builds a new exception embedding card response data with the originating exception.

Parameters
cardResponseApiThe card responses received so far.
isCardResponseCompleteTrue if the number responses equals the number of requests present in the original keypop::card::spi::CardRequestSpi.
messageMessage to identify the exception context.
causeThe cause
Since
1.0.0

Definition at line 60 of file CardBrokenCommunicationException.hpp.


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