Keyple Util C++ Library 2.0.0
Reference Terminal Reader API for C++
Error.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2021 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#pragma once
14
15#include <exception>
16#include <string>
17
18namespace keyple {
19namespace core {
20namespace util {
21namespace cpp {
22namespace exception {
23
24class Error : public std::exception {
25public:
29 Error() : mMessage("") {}
30
34 Error(const std::string& msg) : mMessage(msg) {}
35
36private:
40 const std::string mMessage;
41};
42
43}
44}
45}
46}
47}
Error(const std::string &msg)
Definition: Error.h:34