Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
InvalidCardResponseException.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the MIT License which is available at *
9 * https://opensource.org/licenses/MIT *
10 * *
11 * SPDX-License-Identifier: MIT *
12 ******************************************************************************/
13
14#pragma once
15
16#include <stdexcept>
17#include <string>
18
19namespace keypop {
20namespace reader {
21namespace selection {
22
29class InvalidCardResponseException final : public std::runtime_error {
30public:
35 explicit InvalidCardResponseException(const std::string& message)
36 : std::runtime_error(message)
37 {
38 }
39
46 const std::string& message, const std::exception& /*cause*/)
47 : std::runtime_error(message)
48 {
49 }
50};
51
52} /* namespace selection */
53} /* namespace reader */
54} /* namespace keypop */
Indicates that a response received from the card during the selection process was invalid.
InvalidCardResponseException(const std::string &message, const std::exception &)