PhoenixSwarm
5.2.0
Library to ease communication between daemons
Toggle main menu visibility
Loading...
Searching...
No Matches
daemon_config_exception.h
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
#ifndef __DAEMON_CONFIG8EXCEPTION_H__
8
#define __DAEMON_CONFIG8EXCEPTION_H__
9
10
#include <stdexcept>
11
#include "PString.h"
12
13
namespace
Phoenix
{
15
class
SwarmException
:
public
std::runtime_error {
16
public
:
17
SwarmException
(
const
PString& function,
const
PString& message,
const
PString& component =
""
);
18
19
const
PString&
getComponent
()
const
;
20
const
PString&
getMessage
()
const
;
21
const
PString&
getFunction
()
const
;
22
private
:
24
PString
p_function
;
26
PString
p_message
;
28
PString
p_component
;
29
};
30
32
class
ParserException
:
public
SwarmException
{
33
public
:
34
ParserException
(
const
PString& function,
const
PString& message);
35
};
36
38
class
ConfigException
:
public
SwarmException
{
39
public
:
40
ConfigException
(
const
PString& function,
const
PString& message);
41
};
42
44
class
SocketStatusException
:
public
SwarmException
{
45
public
:
46
SocketStatusException
(
const
PString& function,
const
PString& message);
47
};
48
}
49
50
#endif
51
52
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
Phoenix
Definition
daemon_config_exception.h:13
src
Daemon
daemon_config_exception.h
Generated by
1.17.0