Argentum Online - Cliente
asset_loading_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 AssetLoadingError : public std::exception {
12  private:
13  char msg_error[BUF_LEN];
14 
15  public:
16  explicit AssetLoadingError(const char* fmt, ...) noexcept;
17  virtual const char* what() const noexcept;
18  virtual ~AssetLoadingError() noexcept {}
19 };
20 
21 #endif
AssetLoadingError
Definition: asset_loading_error.h:11