MRPT  2.0.1
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-2020, 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 */
38  std::string m_msg;
39 };
40 } // namespace mrpt::graphs
const char * what() const noexcept override
Abstract graph and tree data structures, plus generic graph algorithms.
~HypothesisNotFoundException() noexcept override
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 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020