Go to the documentation of this file.00001
00005 #ifndef ERRORHANDLER_HPP
00006 #define ERRORHANDLER_HPP
00007
00008
00009 #include "../BasicDatatypes.hpp"
00010 #include <stdexcept>
00011
00012
00013 #define printInfoMessage(a, b) (b ? infoMessage(a, b):doNothing())
00014
00015
00016 void dieWithError(std::string errorMessage);
00017
00018 void infoMessage(std::string message, bool print = true);
00019
00020 void printWarning(std::string message);
00021
00022 void printError(std::string message);
00023
00024 void doNothing();
00025
00026 #endif // ERRORHANDLER_HPP