simulation/ErrorHandler.cpp

16 lines
328 B
C++
Raw Normal View History

2022-10-30 23:44:30 +01:00
#include "ErrorHandler.h"
bool ErrorHandler::send(ErrorType e, std::string message){
std::cout << "ERROR::(" << message << ")";
switch (e) {
case ErrorType::SDL_ERROR:
std::cout << SDL_GetError() << std::endl;
return false;
break;
default:
std::cout << "UNKNOWN ERROR..." << std::endl;
return true;
}
}