Keypop Card C++ API 2.0.0
Reference Card API for C++
include
keypop
card
ParseException.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
card {
19
28
class
ParseException
:
public
std::exception {
29
public
:
34
explicit
ParseException
(
const
std::string& message)
35
: std::exception()
36
, mMessage(message) {
37
}
38
44
ParseException
(
45
const
std::string& message,
const
std::shared_ptr<std::exception> cause)
46
: std::exception(*cause)
47
, mMessage(message) {
48
}
49
53
const
std::string&
54
getMessage
()
const
{
55
return
mMessage;
56
}
57
58
private
:
62
const
std::string mMessage;
63
};
64
65
}
/* namespace card */
66
}
/* namespace keypop */
keypop::card::ParseException
Definition:
ParseException.hpp:28
keypop::card::ParseException::ParseException
ParseException(const std::string &message, const std::shared_ptr< std::exception > cause)
Definition:
ParseException.hpp:44
keypop::card::ParseException::getMessage
const std::string & getMessage() const
Definition:
ParseException.hpp:54
keypop::card::ParseException::ParseException
ParseException(const std::string &message)
Definition:
ParseException.hpp:34
keypop
Definition:
AbstractApduException.hpp:19
Generated by
1.9.2