Main MRPT website > C++ reference for MRPT 1.5.6
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 <mrpt/utils/exceptions.h>)
20  * \ingroup mrpt_base_grp
21  * @{ */
22 
23  /** The base for MRPT-especific exceptions \ingroup mrpt_base_grp */
24  class CMRPTException: public std::logic_error
25  {
26  public:
27  CMRPTException(const std::string &s) : std::logic_error(s.c_str()) { }
28  };
29 
30  /** Used in mrpt::utils::CImage */
32  {
33  public:
35  };
36 
37  /** Used in mrpt::utils::CStream */
39  {
40  public:
42  };
43 
44  /** @} */
45  } // End of namespace
46 } // End of namespace
47 #endif
CExceptionEOF(const std::string &s)
Definition: exceptions.h:41
CExceptionExternalImageNotFound(const std::string &s)
Definition: exceptions.h:34
GLdouble s
Definition: glew.h:1295
The base for MRPT-especific exceptions.
Definition: exceptions.h:24
Used in mrpt::utils::CStream.
Definition: exceptions.h:38
GLsizei const GLcharARB ** string
Definition: glew.h:3293
CMRPTException(const std::string &s)
Definition: exceptions.h:27
Used in mrpt::utils::CImage.
Definition: exceptions.h:31



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018