Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
ecl
exceptions
exception.hpp
Go to the documentation of this file.
1
10
/*****************************************************************************
11
** Ifdefs
12
*****************************************************************************/
13
14
#ifndef ECL_EXCEPTIONS_EXCEPTION_HPP_
15
#define ECL_EXCEPTIONS_EXCEPTION_HPP_
16
17
/*****************************************************************************
18
** Disable check
19
*****************************************************************************/
20
21
#include <ecl/config/ecl.hpp>
22
#ifndef ECL_DISABLE_EXCEPTIONS
23
24
/*****************************************************************************
25
** Includes
26
*****************************************************************************/
27
28
#include <exception>
29
#include <string>
30
#include "
macros.hpp
"
31
32
/*****************************************************************************
33
** Namespaces
34
*****************************************************************************/
35
36
namespace
ecl
{
37
38
/*****************************************************************************
39
** General exception
40
*****************************************************************************/
49
class
ecl_exceptions_PUBLIC
Exception :
public
std::exception
50
{
51
public
:
55
virtual
const
char
* what()
const
throw() = 0;
56
virtual ~Exception() throw() {}
58
protected
:
63
Exception() {}
68
Exception(
const
char
* loc ) : location(loc) {};
69
70
std::string location;
71
};
72
73
};
// namespace ecl
74
75
#endif
/* ECL_DISABLE_EXCEPTIONS */
76
#endif
/*ECL_EXCEPTIONS_EXCEPTION_HPP_*/
ecl
ecl_exceptions_PUBLIC
#define ecl_exceptions_PUBLIC
Definition:
exceptions/macros.hpp:37
macros.hpp
xbot_node
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:28:13