MRPT
2.0.3
mrpt
graphs
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
:
23
HypothesisNotFoundException
(
24
mrpt::graphs::TNodeID
from,
mrpt::graphs::TNodeID
to);
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
:
32
mrpt::graphs::TNodeID
m_from
{
INVALID_NODEID
},
m_to
{
INVALID_NODEID
};
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
mrpt::graphs::HypothesisNotFoundException::m_id
size_t m_id
Hypothesis ID.
Definition:
CHypothesisNotFoundException.h:35
mrpt::graphs::HypothesisNotFoundException::m_msg
std::string m_msg
Error message.
Definition:
CHypothesisNotFoundException.h:38
exceptions.h
mrpt::graphs::TNodeID
uint64_t TNodeID
A generic numeric type for unique IDs of nodes or entities.
Definition:
TNodeID.h:16
mrpt::graphs::HypothesisNotFoundException
Definition:
CHypothesisNotFoundException.h:20
mrpt::graphs::HypothesisNotFoundException::clear
void clear()
Definition:
CHypothesisNotFoundException.cpp:47
mrpt::graphs::HypothesisNotFoundException::m_to
mrpt::graphs::TNodeID m_to
Definition:
CHypothesisNotFoundException.h:32
mrpt::graphs::HypothesisNotFoundException::m_from
mrpt::graphs::TNodeID m_from
Definition:
CHypothesisNotFoundException.h:32
mrpt::graphs
Abstract graph and tree data structures, plus generic graph algorithms.
Definition:
CAStarAlgorithm.h:15
mrpt::graphs::HypothesisNotFoundException::HypothesisNotFoundException
HypothesisNotFoundException(mrpt::graphs::TNodeID from, mrpt::graphs::TNodeID to)
Definition:
CHypothesisNotFoundException.cpp:16
TNodeID.h
INVALID_NODEID
#define INVALID_NODEID
Definition:
TNodeID.h:19
mrpt::graphs::HypothesisNotFoundException::what
const char * what() const noexcept override
Definition:
CHypothesisNotFoundException.cpp:63
mrpt::graphs::HypothesisNotFoundException::~HypothesisNotFoundException
~HypothesisNotFoundException() noexcept override
mrpt::graphs::HypothesisNotFoundException::getErrorMsg
std::string getErrorMsg() const noexcept
Definition:
CHypothesisNotFoundException.cpp:56
Page generated by
Doxygen 1.8.17
for MRPT 2.0.3 at Fri May 29 13:06:46 UTC 2020