Errors.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdexcept>
4
#include <string>
5
6
namespace
armarx::control::hardware_config
7
{
8
/**
9
* @brief The ConfigInsertError class represents an error that is thrown if an attempt
10
* is mode to set a config value but the value is already defined with the same tag.
11
*/
12
class
ConfigInsertError
:
public
std::runtime_error
13
{
14
public
:
15
ConfigInsertError
(
const
std::string&
message
) :
std
::runtime_error(
message
)
16
{
17
}
18
};
19
20
/**
21
* @brief The ConfigElementNotFoundError class represents an error that is thrown when
22
* trying to get a config value that is not defined in the config.
23
*/
24
class
ConfigElementNotFoundError
:
public
std::runtime_error
25
{
26
public
:
27
ConfigElementNotFoundError
(
const
std::string&
message
) :
std
::runtime_error(
message
)
28
{
29
}
30
};
31
32
/**
33
* @brief The ParserError class represents a generic error that occurs during parsing
34
*/
35
class
ParserError
:
public
std::runtime_error
36
{
37
public
:
38
ParserError
(
const
std::string&
message
) :
std
::runtime_error(
message
)
39
{
40
}
41
};
42
}
// namespace armarx::control::hardware_config
armarx::control::hardware_config::ParserError::ParserError
ParserError(const std::string &message)
Definition:
Errors.h:38
armarx::control::hardware_config::ConfigElementNotFoundError
The ConfigElementNotFoundError class represents an error that is thrown when trying to get a config v...
Definition:
Errors.h:24
armarx::control::hardware_config::ConfigElementNotFoundError::ConfigElementNotFoundError
ConfigElementNotFoundError(const std::string &message)
Definition:
Errors.h:27
message
message(STATUS "Boost-Library-Dir: " "${Boost_LIBRARY_DIRS}") message(STATUS "Boost-LIBRARIES
Definition:
CMakeLists.txt:8
armarx::control::hardware_config
Definition:
Config.cpp:3
armarx::control::hardware_config::ConfigInsertError
The ConfigInsertError class represents an error that is thrown if an attempt is mode to set a config ...
Definition:
Errors.h:12
armarx::control::hardware_config::ParserError
The ParserError class represents a generic error that occurs during parsing.
Definition:
Errors.h:35
armarx::control::hardware_config::ConfigInsertError::ConfigInsertError
ConfigInsertError(const std::string &message)
Definition:
Errors.h:15
std
Definition:
Application.h:66
armarx
control
hardware_config
Errors.h
Generated on Sat Oct 12 2024 09:14:14 for armarx_documentation by
1.8.17