23 lines
269 B
C
23 lines
269 B
C
|
#ifndef ERRORHANDLER_H
|
||
|
#define ERRORHANDLER_H
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <SDL2/SDL.h>
|
||
|
|
||
|
|
||
|
enum class ErrorType{
|
||
|
DEFAULT = -1,
|
||
|
SDL_ERROR
|
||
|
};
|
||
|
|
||
|
class ErrorHandler
|
||
|
{
|
||
|
private:
|
||
|
|
||
|
|
||
|
public:
|
||
|
static bool send(ErrorType e, std::string message);
|
||
|
};
|
||
|
|
||
|
#endif /* ERRORHANDLER_H */
|