#include <exception.hpp>
Public Member Functions | |
exception (const std::string &operation, const bool use_sdl_error) | |
Constructor. More... | |
Public Member Functions inherited from game::error | |
error () | |
error (const std::string &msg) | |
~error () noexcept | |
const char * | what () const noexcept |
Additional Inherited Members | |
Public Attributes inherited from game::error | |
std::string | message |
Definition at line 28 of file exception.hpp.
sdl::exception::exception | ( | const std::string & | operation, |
const bool | use_sdl_error | ||
) |
Constructor.
operation | The operation that has failed. |
use_sdl_error | If set to true the operation is appended with the SDL error message. Else the operation is the error message for the exception. |
Definition at line 33 of file exception.cpp.