Main MRPT website > C++ reference
MRPT logo
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-2015, 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  /** The base for MRPT-especific exceptions \ingroup mrpt_base_grp */
20  class CMRPTException: public std::logic_error
21  {
22  public:
23  CMRPTException(const std::string &s) : std::logic_error(s.c_str()) { }
24  };
25 
26  /** Used in mrpt::utils::CImage */
28  {
29  public:
30  CExceptionExternalImageNotFound(const std::string &s) : CMRPTException(s) { }
31  };
32 
33  /** Used in mrpt::utils::CStream */
35  {
36  public:
37  CExceptionEOF(const std::string &s) : CMRPTException(s) { }
38  };
39 
40  } // End of namespace
41 } // End of namespace
42 #endif
CExceptionEOF(const std::string &s)
Definition: exceptions.h:37
CExceptionExternalImageNotFound(const std::string &s)
Definition: exceptions.h:30
STL namespace.
The base for MRPT-especific exceptions.
Definition: exceptions.h:20
Used in mrpt::utils::CStream.
Definition: exceptions.h:34
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CMRPTException(const std::string &s)
Definition: exceptions.h:23
Used in mrpt::utils::CImage.
Definition: exceptions.h:27



Page generated by Doxygen 1.8.9.1 for MRPT 1.3.0 SVN: at Sun Sep 13 03:55:12 UTC 2015