PhoenixSwarm  3.5.0
Library to ease communication between daemons
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
13namespace 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
33 public:
34 ParserException(const PString& function, const PString& message);
35 };
36
39 public:
40 ConfigException(const PString& function, const PString& message);
41 };
42
45 public:
46 SocketStatusException(const PString& function, const PString& message);
47 };
48}
49
50#endif
51
52
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.