PhoenixSwarm  5.1.1
Library to ease communication between daemons
Loading...
Searching...
No Matches
main.cpp File Reference
#include "phoenix_assert.h"
#include "phoenix_check.h"
#include "daemon_config_exception.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testSwarmException ()
 Test the Swarm exception.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 34 of file main.cpp.

34 {
36
37 return 0;
38}
void testSwarmException()
Test the Swarm exception.
Definition main.cpp:12

References testSwarmException().

+ Here is the call graph for this function:

◆ testSwarmException()

void testSwarmException ( )

Test the Swarm exception.

Definition at line 12 of file main.cpp.

12 {
13 Phoenix::SwarmException ex("function", "some error message", "Component");
14 phoenix_assert(phoenix_check("SwarmException component", ex.getComponent(), PString("Component")));
15 phoenix_assert(phoenix_check("SwarmException function", ex.getFunction(), PString("function")));
16 phoenix_assert(phoenix_check("SwarmException message", ex.getMessage(), PString("some error message")));
17
18 Phoenix::ParserException pex("function", "message");
19 phoenix_assert(phoenix_check("ParserException component", pex.getComponent(), PString("Parser")));
20 phoenix_assert(phoenix_check("ParserException function", pex.getFunction(), PString("function")));
21 phoenix_assert(phoenix_check("ParserException message", pex.getMessage(), PString("message")));
22
23 Phoenix::ConfigException mex("function", "message");
24 phoenix_assert(phoenix_check("ConfigException component", mex.getComponent(), PString("Config")));
25 phoenix_assert(phoenix_check("ConfigException function", mex.getFunction(), PString("function")));
26 phoenix_assert(phoenix_check("ConfigException message", mex.getMessage(), PString("message")));
27
28 Phoenix::SocketStatusException sockex("function", "message");
29 phoenix_assert(phoenix_check("SocketStatusException component", sockex.getComponent(), PString("SocketStatus")));
30 phoenix_assert(phoenix_check("SocketStatusException function", sockex.getFunction(), PString("function")));
31 phoenix_assert(phoenix_check("SocketStatusException message", sockex.getMessage(), PString("message")));
32}
Exception for daemon configuration errors.
Exception for configuration errors.
Exception for socket status errors.
Base exception class for the Phoenix project.

References Phoenix::SwarmException::getComponent(), Phoenix::SwarmException::getFunction(), and Phoenix::SwarmException::getMessage().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: