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
void printError(std::string message)
void printWarning(std::string message)
void doNothing()
void dieWithError(std::string errorMessage)
void infoMessage(std::string message, bool print=true)


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Wed May 5 2021 03:05:47