GEJM  1.0.0.0
a 2D platformer made by students
InitError.h
1 #ifndef INITERROR_H
2 #define INITERROR_H
3 
4 #include <exception>
5 #include <string>
6 #include <SDL.h>
7 
11 class InitError :
12  public std::exception
13 {
14 public:
18  InitError();
19 
24  InitError(const std::string& m);
25 
26 #if (_MSC_VER<1900) && defined(_MSC_VER)
27 
30  virtual ~InitError() throw();
31 
36  virtual const char* what() const throw();
37 #else
38 
41  virtual ~InitError() noexcept;
42 
47  virtual const char* what() const noexcept;
48 #endif
49 
50 private:
54  std::string msg;
55 };
56 
57 #endif // INITERROR_H
virtual const char * what() const noexcept
Definition: InitError.cpp:50
Definition: InitError.h:11
InitError()
Definition: InitError.cpp:6
virtual ~InitError() noexcept
Definition: InitError.cpp:42