Main MRPT website > C++ reference for MRPT 1.4.0
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-2016, 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
15namespace 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:
34 CExceptionExternalImageNotFound(const std::string &s) : CMRPTException(s) { }
35 };
36
37 /** Used in mrpt::utils::CStream */
39 {
40 public:
41 CExceptionEOF(const std::string &s) : CMRPTException(s) { }
42 };
43
44 /** @} */
45 } // End of namespace
46} // End of namespace
47#endif
Used in mrpt::utils::CStream.
Definition: exceptions.h:39
CExceptionEOF(const std::string &s)
Definition: exceptions.h:41
Used in mrpt::utils::CImage.
Definition: exceptions.h:32
CExceptionExternalImageNotFound(const std::string &s)
Definition: exceptions.h:34
The base for MRPT-especific exceptions.
Definition: exceptions.h:25
CMRPTException(const std::string &s)
Definition: exceptions.h:27
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
STL namespace.



Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 08:20:48 UTC 2023