Main MRPT website > C++ reference for MRPT 1.9.9
exceptions.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef exceptions_H
10 #define exceptions_H
11 
12 #include <stdexcept>
13 #include <string>
14 
15 namespace mrpt
16 {
17 namespace utils
18 {
19 /** \addtogroup mrpt_exceptions Exception base classes (in #include
20  * <mrpt/utils/exceptions.h>)
21  * \ingroup mrpt_base_grp
22  * @{ */
23 
24 /** The base for MRPT-especific exceptions \ingroup mrpt_base_grp */
25 class CMRPTException : public std::logic_error
26 {
27  public:
28  CMRPTException(const std::string& s) : std::logic_error(s.c_str()) {}
29 };
30 
31 /** Used in mrpt::utils::CImage */
33 {
34  public:
36 };
37 
38 /** Used in mrpt::utils::CStream */
40 {
41  public:
43 };
44 
45 /** @} */
46 } // End of namespace
47 } // End of namespace
48 #endif
CExceptionEOF(const std::string &s)
Definition: exceptions.h:42
CExceptionExternalImageNotFound(const std::string &s)
Definition: exceptions.h:35
STL namespace.
GLdouble s
Definition: glext.h:3676
The base for MRPT-especific exceptions.
Definition: exceptions.h:25
GLsizei const GLchar ** string
Definition: glext.h:4101
Used in mrpt::utils::CStream.
Definition: exceptions.h:39
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CMRPTException(const std::string &s)
Definition: exceptions.h:28
Used in mrpt::utils::CImage.
Definition: exceptions.h:32



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019