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



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019