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-2018, 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 #pragma once
10 
11 #include <cstdint>
12 #include <mrpt/core/exceptions.h>
13 #include <mrpt/graphs/TNodeID.h>
14 #include <stdexcept>
15 #include <string>
16 
17 namespace mrpt
18 {
19 namespace graphs
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 noexcept;
31  const char* what() const noexcept;
32 
33  private:
35 
36  /**\brief Hypothesis ID */
37  size_t m_id;
38 
39  /**\brief Error message */
41 };
42 } // namespace graphs
43 } // namespace mrpt
mrpt::graphs::HypothesisNotFoundException::m_id
size_t m_id
Hypothesis ID.
Definition: CHypothesisNotFoundException.h:37
mrpt::graphs::HypothesisNotFoundException::m_msg
std::string m_msg
Error message.
Definition: CHypothesisNotFoundException.h:40
exceptions.h
mrpt::graphs::HypothesisNotFoundException::what
const char * what() const noexcept
Definition: CHypothesisNotFoundException.cpp:63
mrpt::graphs::TNodeID
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition: TNodeID.h:17
mrpt::graphs::HypothesisNotFoundException
Definition: CHypothesisNotFoundException.h:22
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::graphs::HypothesisNotFoundException::~HypothesisNotFoundException
~HypothesisNotFoundException() noexcept
Definition: CHypothesisNotFoundException.cpp:55
mrpt::graphs::HypothesisNotFoundException::clear
void clear()
Definition: CHypothesisNotFoundException.cpp:47
mrpt::graphs::HypothesisNotFoundException::m_to
mrpt::graphs::TNodeID m_to
Definition: CHypothesisNotFoundException.h:34
mrpt::graphs::HypothesisNotFoundException::m_from
mrpt::graphs::TNodeID m_from
Definition: CHypothesisNotFoundException.h:34
mrpt::graphs::HypothesisNotFoundException::HypothesisNotFoundException
HypothesisNotFoundException(mrpt::graphs::TNodeID from, mrpt::graphs::TNodeID to)
Definition: CHypothesisNotFoundException.cpp:16
TNodeID.h
string
GLsizei const GLchar ** string
Definition: glext.h:4101
mrpt::graphs::HypothesisNotFoundException::getErrorMsg
std::string getErrorMsg() const noexcept
Definition: CHypothesisNotFoundException.cpp:56



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST