-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathException.hpp
More file actions
34 lines (30 loc) · 810 Bytes
/
Exception.hpp
File metadata and controls
34 lines (30 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* \file src/plugins/input/fds/Exception.hpp
* \author Lukas Hutak <lukas.hutak@cesnet.cz>
* \brief Plugin specific exception (header file)
* \date 2019
*
* Copyright(c) 2019 CESNET z.s.p.o.
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef FDS_EXCEPTION_HPP
#define FDS_EXCEPTION_HPP
#include <stdexcept>
#include <string>
/// Plugin specific exception
class FDS_exception : public std::runtime_error {
public:
/**
* @brief Constructor
* @param[in] str Error message
*/
FDS_exception(const std::string &str) : std::runtime_error(str) {};
/**
* @brief Constructor
* @param[in] str Error message
*/
FDS_exception(const char *str) : std::runtime_error(str) {};
// Default destructor
~FDS_exception() = default;
};
#endif // FDS_EXCEPTION_HPP