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) 2024 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 https://opensource.org/licenses/MIT. *
6
* *
7
* SPDX-License-Identifier: MIT *
8
**************************************************************************************************/
9
10
#pragma once
11
12
#include <memory>
13
#include <stdexcept>
14
#include <string>
15
16
namespace
keypop
{
17
namespace
reader {
18
24
class
CardCommunicationException
final :
public
std::runtime_error {
25
public
:
30
explicit
CardCommunicationException
(
const
std::string& message)
31
: std::runtime_error(message) {
32
}
33
39
CardCommunicationException
(
40
const
std::string& message,
const
std::shared_ptr<std::exception> cause)
41
: std::runtime_error(message) {
42
// FIXME: should we do something about the cause?
43
(void)cause;
44
}
45
};
46
47
}
/* namespace reader */
48
}
/* namespace keypop */
keypop::reader::CardCommunicationException
Definition:
CardCommunicationException.hpp:24
keypop::reader::CardCommunicationException::CardCommunicationException
CardCommunicationException(const std::string &message)
Definition:
CardCommunicationException.hpp:30
keypop::reader::CardCommunicationException::CardCommunicationException
CardCommunicationException(const std::string &message, const std::shared_ptr< std::exception > cause)
Definition:
CardCommunicationException.hpp:39
keypop
Definition:
CardCommunicationException.hpp:16
Generated by
1.9.2