PhoenixSwarm  3.5.0
Library to ease communication between daemons
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
8
9
11
15Phoenix::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
25 return p_component;
26}
27
29
32 return p_message;
33}
34
36
39 return p_function;
40}
41
43
46Phoenix::ParserException::ParserException(const PString& function, const PString& message)
47 :SwarmException(function, message, "Parser")
48{}
49
51
54Phoenix::ConfigException::ConfigException(const PString& function, const PString& message)
55 :SwarmException(function, message, "Config")
56{}
57
59
62Phoenix::SocketStatusException::SocketStatusException(const PString& function, const PString& message)
63 :SwarmException(function, message, "SocketStatus")
64{}
65
66
67
68
ConfigException(const PString &function, const PString &message)
Config exception.
ParserException(const PString &function, const PString &message)
Parser exception.
SocketStatusException(const PString &function, const PString &message)
Socket exception.
PString p_function
Function where the error occurs.
const PString & getComponent() const
Get the component of the SwarmException.
const PString & getMessage() const
Get the error message of the SwarmException.
PString p_message
Error Message.
SwarmException(const PString &function, const PString &message, const PString &component="")
Constructor of the SwarmException.
const PString & getFunction() const
Get the function of the SwarmException.
PString p_component
Component of the message.