src
tools
errorhandler.hpp
Go to the documentation of this file.
1
5
#ifndef ERRORHANDLER_HPP
6
#define ERRORHANDLER_HPP
7
8
9
#include "../BasicDatatypes.hpp"
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
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:70
printError
void printError(std::string message)
Definition:
errorhandler.cpp:88
libsick_ldmrs
Author(s): SICK AG
, Martin Günther
, Jochen Sprickerhof
autogenerated on Wed Oct 26 2022 02:11:57