Main MRPT website > C++ reference for MRPT 1.9.9
CHypothesisNotFoundException.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 
10 #ifndef CHYPOTHESISNOTFOUNDEXCEPTION_H
11 #define CHYPOTHESISNOTFOUNDEXCEPTION_H
12 
14 #include <mrpt/utils/mrpt_macros.h>
15 
16 #include <stdexcept>
17 #include <iostream>
18 #include <string>
19 #include <sstream>
20 
21 // TODO - include docstring, group etc.
22 class HypothesisNotFoundException : public std::runtime_error
23 {
24  public:
27  HypothesisNotFoundException(size_t id);
29  void clear();
30  std::string getErrorMsg() const throw();
31  const char* what() const throw();
32 
33  private:
36 
37  /**\brief Hypothesis ID */
38  size_t m_id;
39 
40  /**\brief Error message */
42  static std::ostringstream m_cnvt;
43 };
44 
45 #endif /* end of include guard: CHYPOTHESISNOTFOUNDEXCEPTION_H */
HypothesisNotFoundException(mrpt::utils::TNodeID from, mrpt::utils::TNodeID to)
uint64_t TNodeID
The type for node IDs in graphs of different types.
Definition: types_simple.h:49
GLsizei const GLchar ** string
Definition: glext.h:4101



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