PhoenixSwarm
5.2.0
Library to ease communication between daemons
Toggle main menu visibility
Loading...
Searching...
No Matches
daemon_config_exception.cpp
Go to the documentation of this file.
1
/***************************************
2
Auteur : Thibaut Oprinsen
3
Mail : thibaut.oprinsen@lapp.in2p3.fr
4
Licence : CeCILL-C
5
****************************************/
6
7
#include "
daemon_config_exception.h
"
8
9
11
15
Phoenix::SwarmException::SwarmException
(
const
PString& function,
const
PString& message,
const
PString& component)
16
:std::runtime_error(
"["
+ component +
"] "
+ function +
": "
+ message),
p_function
(function),
p_message
(message),
p_component
(component)
17
{
18
19
}
20
22
24
const
PString &
Phoenix::SwarmException::getComponent
()
const
{
25
return
p_component
;
26
}
27
29
31
const
PString &
Phoenix::SwarmException::getMessage
()
const
{
32
return
p_message
;
33
}
34
36
38
const
PString &
Phoenix::SwarmException::getFunction
()
const
{
39
return
p_function
;
40
}
41
43
46
Phoenix::ParserException::ParserException
(
const
PString& function,
const
PString& message)
47
:
SwarmException
(function, message,
"Parser"
)
48
{}
49
51
54
Phoenix::ConfigException::ConfigException
(
const
PString& function,
const
PString& message)
55
:
SwarmException
(function, message,
"Config"
)
56
{}
57
59
62
Phoenix::SocketStatusException::SocketStatusException
(
const
PString& function,
const
PString& message)
63
:
SwarmException
(function, message,
"SocketStatus"
)
64
{}
65
66
67
68
Phoenix::ConfigException::ConfigException
ConfigException(const PString &function, const PString &message)
Config exception.
Definition
daemon_config_exception.cpp:54
Phoenix::ParserException::ParserException
ParserException(const PString &function, const PString &message)
Parser exception.
Definition
daemon_config_exception.cpp:46
Phoenix::SocketStatusException::SocketStatusException
SocketStatusException(const PString &function, const PString &message)
Socket exception.
Definition
daemon_config_exception.cpp:62
Phoenix::SwarmException::p_function
PString p_function
Function where the error occurs.
Definition
daemon_config_exception.h:24
Phoenix::SwarmException::getComponent
const PString & getComponent() const
Get the component of the SwarmException.
Definition
daemon_config_exception.cpp:24
Phoenix::SwarmException::getMessage
const PString & getMessage() const
Get the error message of the SwarmException.
Definition
daemon_config_exception.cpp:31
Phoenix::SwarmException::p_message
PString p_message
Error Message.
Definition
daemon_config_exception.h:26
Phoenix::SwarmException::SwarmException
SwarmException(const PString &function, const PString &message, const PString &component="")
Constructor of the SwarmException.
Definition
daemon_config_exception.cpp:15
Phoenix::SwarmException::getFunction
const PString & getFunction() const
Get the function of the SwarmException.
Definition
daemon_config_exception.cpp:38
Phoenix::SwarmException::p_component
PString p_component
Component of the message.
Definition
daemon_config_exception.h:28
daemon_config_exception.h
src
Daemon
daemon_config_exception.cpp
Generated by
1.17.0