errorhandler.hpp
Go to the documentation of this file.
1 
5 #ifndef ERRORHANDLER_HPP
6 #define ERRORHANDLER_HPP
7 
8 
10 #include <stdexcept> // for throw
11 
12 
13 #define printInfoMessage(a, b) (b ? infoMessage(a, b):doNothing())
14 
15 // Fehler-"behandlung": Schreibe die Fehlermeldung und beende das Programm.
16 void dieWithError(std::string errorMessage);
17 
18 void infoMessage(std::string message, bool print = true);
19 
20 void printWarning(std::string message);
21 
22 void printError(std::string message);
23 
24 void doNothing();
25 
26 #endif // ERRORHANDLER_HPP
BasicDatatypes.hpp
infoMessage
void infoMessage(std::string message, bool print=true)
Definition: errorhandler.cpp:46
doNothing
void doNothing()
Definition: errorhandler.cpp:20
dieWithError
void dieWithError(std::string errorMessage)
Definition: errorhandler.cpp:28
printWarning
void printWarning(std::string message)
Definition: errorhandler.cpp:73
printError
void printError(std::string message)
Definition: errorhandler.cpp:94


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Thu Sep 8 2022 02:30:19