PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
Phoenix::ConfigException Class Reference

Exception for daemon configuration errors. More...

#include <daemon_config_exception.h>

+ Inheritance diagram for Phoenix::ConfigException:
+ Collaboration diagram for Phoenix::ConfigException:

Public Member Functions

 ConfigException (const PString &function, const PString &message)
 Config exception.
 
const PString & getComponent () const
 Get the component of the SwarmException.
 
const PString & getFunction () const
 Get the function of the SwarmException.
 
const PString & getMessage () const
 Get the error message of the SwarmException.
 

Private Attributes

PString p_component
 Component of the message.
 
PString p_function
 Function where the error occurs.
 
PString p_message
 Error Message.
 

Detailed Description

Exception for daemon configuration errors.

Definition at line 38 of file daemon_config_exception.h.

Constructor & Destructor Documentation

◆ ConfigException()

Phoenix::ConfigException::ConfigException ( const PString & function,
const PString & message )

Config exception.

Parameters
function: function where the error occurs
message: error message

Definition at line 54 of file daemon_config_exception.cpp.

55 :SwarmException(function, message, "Config")
56{}
SwarmException(const PString &function, const PString &message, const PString &component="")
Constructor of the SwarmException.

References Phoenix::SwarmException::SwarmException().

+ Here is the call graph for this function:

Member Function Documentation

◆ getComponent()

const PString & Phoenix::SwarmException::getComponent ( ) const
inherited

Get the component of the SwarmException.

Returns
component of the SwarmException

Definition at line 24 of file daemon_config_exception.cpp.

24 {
25 return p_component;
26}
PString p_component
Component of the message.

References p_component.

◆ getFunction()

const PString & Phoenix::SwarmException::getFunction ( ) const
inherited

Get the function of the SwarmException.

Returns
function of the SwarmException

Definition at line 38 of file daemon_config_exception.cpp.

38 {
39 return p_function;
40}
PString p_function
Function where the error occurs.

References p_function.

◆ getMessage()

const PString & Phoenix::SwarmException::getMessage ( ) const
inherited

Get the error message of the SwarmException.

Returns
component of the SwarmException

Definition at line 31 of file daemon_config_exception.cpp.

31 {
32 return p_message;
33}
PString p_message
Error Message.

References p_message.

Member Data Documentation

◆ p_component

PString Phoenix::SwarmException::p_component
privateinherited

Component of the message.

Definition at line 28 of file daemon_config_exception.h.

Referenced by getComponent(), and SwarmException().

◆ p_function

PString Phoenix::SwarmException::p_function
privateinherited

Function where the error occurs.

Definition at line 24 of file daemon_config_exception.h.

Referenced by getFunction(), and SwarmException().

◆ p_message

PString Phoenix::SwarmException::p_message
privateinherited

Error Message.

Definition at line 26 of file daemon_config_exception.h.

Referenced by getMessage(), and SwarmException().


The documentation for this class was generated from the following files: