16 lines
328 B
C++
16 lines
328 B
C++
#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;
|
|
}
|
|
|
|
}
|