Keypop Reader C++ API 2.0.0
Reference Reader API for C++
InvalidCardResponseException.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 <map>
13#include <memory>
14#include <stdexcept>
15#include <string>
16
17namespace keypop {
18namespace reader {
19namespace selection {
20
26class InvalidCardResponseException final : public std::runtime_error {
27public:
32 explicit InvalidCardResponseException(const std::string& message)
33 : std::runtime_error(message) {
34 }
35
42 const std::string& message, const std::shared_ptr<std::exception> cause)
43 : std::runtime_error(message) {
44 // FIXME: should we use cause?
45 (void)cause;
46 }
47};
48
49} /* namespace selection */
50} /* namespace reader */
51} /* namespace keypop */
InvalidCardResponseException(const std::string &message, const std::shared_ptr< std::exception > cause)