Keypop Reader C++ API 2.0.0
Reference Reader API for C++
include
keypop
reader
CardCommunicationException.hpp
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3
* *
4
* This program and the accompanying materials are made available under the *
5
* terms of the MIT License which is available at *
6
* https://opensource.org/licenses/MIT. *
7
* *
8
* SPDX-License-Identifier: MIT *
9
******************************************************************************/
10
11
#pragma once
12
13
#include <memory>
14
#include <stdexcept>
15
#include <string>
16
17
namespace
keypop
{
18
namespace
reader {
19
25
class
CardCommunicationException
final :
public
std::runtime_error {
26
public
:
31
explicit
CardCommunicationException
(
const
std::string& message)
32
: std::runtime_error(message)
33
{
34
}
35
41
CardCommunicationException
(
42
const
std::string& message,
const
std::shared_ptr<std::exception> cause)
43
: std::runtime_error(message)
44
{
45
// FIXME: should we do something about the cause?
46
(void)cause;
47
}
48
};
49
50
}
/* namespace reader */
51
}
/* namespace keypop */
keypop::reader::CardCommunicationException
Definition:
CardCommunicationException.hpp:25
keypop::reader::CardCommunicationException::CardCommunicationException
CardCommunicationException(const std::string &message)
Definition:
CardCommunicationException.hpp:31
keypop::reader::CardCommunicationException::CardCommunicationException
CardCommunicationException(const std::string &message, const std::shared_ptr< std::exception > cause)
Definition:
CardCommunicationException.hpp:41
keypop
Definition:
CardCommunicationException.hpp:17
Generated by
1.9.2