1 #include "ErrorHandler.hpp"
4 ErrorHandler::OutputError(ErrorType eType
, std::string Error
)
6 std::string FullError
= "Oh shit, there was an error. *facepalm*\n"; // The preamble part.
8 case FATAL_CONSTRUCTOR_ERROR
:
9 FullError
+= "SDL_GetError(): " + std::string(SDL_GetError()) + '\n';
10 FullError
+= "DEBUG: " + Error
; // The error I report is less important than SDL_GetError().
11 FullError
+= "This error originated from a constructor, the program will abort by itself.\n";
12 std::cout
<< FullError
;
15 case NONFATAL_CONSTRUCTOR_ERROR
: