| 
    cpp-sdl2
    
   C++ header-only SDL2 wrapper 
   | 
 
Define to deactivate exception support. More...
#include <exception.hpp>
 Inheritance diagram for sdl::Exception:Public Member Functions | |
| Exception (std::string const &function) | |
| Construct an exception object.  More... | |
| std::string | function () | 
| Return the string containing the name of the SDL function that failed.  More... | |
| std::string | error () | 
| Return the error message generated by SDL_GetError() at event object construction.  More... | |
| const char * | what () const noexcept override | 
| Exception (std::string const &function) | |
| Constructor that will dump error informations to stderr, then kill the program.  More... | |
Private Attributes | |
| std::string | function_ | 
| storage for function name string  More... | |
| std::string | error_ | 
| storage for SDL_GetError() return string  More... | |
| std::string | what_ | 
| storage for the "what()" string. string is dynamically built when calling what() const  More... | |
Define to deactivate exception support.
Castrated exception class.
Custom exception object
Definition at line 21 of file exception.hpp.
      
  | 
  inline | 
Construct an exception object.
Will get the content of SDL_GetError() ont the '.what()' message
| function | string containing the name of the SDL function | 
Definition at line 26 of file exception.hpp.
References error_.
      
  | 
  inline | 
Constructor that will dump error informations to stderr, then kill the program.
Definition at line 68 of file exception.hpp.
References error().
      
  | 
  inline | 
Return the error message generated by SDL_GetError() at event object construction.
Definition at line 34 of file exception.hpp.
References error_.
Referenced by Exception().
      
  | 
  inline | 
Return the string containing the name of the SDL function that failed.
Definition at line 32 of file exception.hpp.
References function_.
      
  | 
  inlineoverridenoexcept | 
Definition at line 36 of file exception.hpp.
      
  | 
  private | 
storage for SDL_GetError() return string
Definition at line 53 of file exception.hpp.
Referenced by error(), Exception(), and what().
      
  | 
  private | 
storage for function name string
Definition at line 51 of file exception.hpp.
Referenced by function(), and what().
      
  | 
  mutableprivate | 
storage for the "what()" string. string is dynamically built when calling what() const
Definition at line 55 of file exception.hpp.
Referenced by what().