YAMI4 C++ Library 2.0.0
Messaging Solution for Distributed Systems
Loading...
Searching...
No Matches
errors.h
1// Copyright Maciej Sobczak 2008-2022.
2// This file is part of YAMI4.
3// See the package-level LICENSE.txt file.
4
5#ifndef YAMICPP_ERRORS_H_INCLUDED
6#define YAMICPP_ERRORS_H_INCLUDED
7
8#include <yami4-core/dll.h>
9#include <string>
10#include <stdexcept>
11
12namespace yami
13{
14
21class DLL yami_logic_error : public std::logic_error
22{
23public:
24 explicit yami_logic_error(const std::string & message)
25 : std::logic_error(message)
26 {
27 }
28};
29
37class DLL yami_runtime_error : public std::runtime_error
38{
39public:
40 explicit yami_runtime_error(const std::string & message)
41 : std::runtime_error(message)
42 {
43 }
44};
45
46} // namespace yami
47
48#endif // YAMICPP_ERRORS_H_INCLUDED
General exception class for reporting logic errors.
Definition: errors.h:22
General exception class for reporting run-time errors.
Definition: errors.h:38
Namespace devoted to everything related to YAMI4.
Definition: agent.h:21