MRPT  1.9.9
CHypothesisNotFoundException.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/core/exceptions.h>
12 #include <mrpt/graphs/TNodeID.h>
13 #include <cstdint>
14 #include <stdexcept>
15 #include <string>
16 
17 namespace mrpt::graphs
18 {
19 // TODO - include docstring, group etc.
20 class HypothesisNotFoundException : public std::runtime_error
21 {
22  public:
25  HypothesisNotFoundException(size_t id);
26  ~HypothesisNotFoundException() noexcept override;
27  void clear();
28  std::string getErrorMsg() const noexcept;
29  const char* what() const noexcept override;
30 
31  private:
33 
34  /**\brief Hypothesis ID */
35  size_t m_id{0};
36 
37  /**\brief Error message */
39 };
40 } // namespace mrpt::graphs
const char * what() const noexcept override
Abstract graph and tree data structures, plus generic graph algorithms.
~HypothesisNotFoundException() noexcept override
GLsizei const GLchar ** string
Definition: glext.h:4116
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition: TNodeID.h:16
HypothesisNotFoundException(mrpt::graphs::TNodeID from, mrpt::graphs::TNodeID to)
#define INVALID_NODEID
Definition: TNodeID.h:19



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019