Argentum Online - Cliente
sdl_error.h
1 #ifndef __ERROR_H
2 #define __ERROR_H
3 
4 /* ------ Includes ---------*/
5 #include <string>
6 #include <typeinfo>
7 
8 #define BUF_LEN 256
9 
10 /* ------ Interfaz ---------*/
11 class SDLError : public std::exception {
12  private:
13  char msg_error[BUF_LEN];
14 
15  public:
16  explicit SDLError(const char* fmt, ...) noexcept;
17  virtual const char* what() const noexcept;
18  virtual ~SDLError() noexcept {}
19 };
20 
21 #endif
SDLError
Definition: sdl_error.h:11