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

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

#include <keypop/card/ReaderBrokenCommunicationException.hpp>

Inheritance diagram for keypop::card::ReaderBrokenCommunicationException:
Collaboration diagram for keypop::card::ReaderBrokenCommunicationException:

Public Member Functions

 ReaderBrokenCommunicationException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message)
 Builds a new exception embedding card response data. More...
 
 ReaderBrokenCommunicationException (const std::shared_ptr< CardResponseApi > cardResponseApi, const bool isCardResponseComplete, const std::string &message, const std::shared_ptr< 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 reader occurs.

Since
1.0.0

Definition at line 29 of file ReaderBrokenCommunicationException.hpp.

Constructor & Destructor Documentation

◆ ReaderBrokenCommunicationException() [1/2]

keypop::card::ReaderBrokenCommunicationException::ReaderBrokenCommunicationException ( 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 calypsonet::terminal::card::spi::CardRequestSpi.
messageMessage to identify the exception context.
Since
1.0.0

Definition at line 41 of file ReaderBrokenCommunicationException.hpp.

◆ ReaderBrokenCommunicationException() [2/2]

keypop::card::ReaderBrokenCommunicationException::ReaderBrokenCommunicationException ( const std::shared_ptr< CardResponseApi >  cardResponseApi,
const bool  isCardResponseComplete,
const std::string &  message,
const std::shared_ptr< 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 calypsonet::terminal::card::spi::CardRequestSpi.
messageMessage to identify the exception context.
causeThe cause
Since
1.0.0

Definition at line 60 of file ReaderBrokenCommunicationException.hpp.


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