The Battle for Wesnoth  1.19.0-dev
Public Member Functions | List of all members
sdl::exception Struct Reference

#include <exception.hpp>

Inheritance diagram for sdl::exception:

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
 

Detailed Description

Definition at line 28 of file exception.hpp.

Constructor & Destructor Documentation

◆ exception()

sdl::exception::exception ( const std::string &  operation,
const bool  use_sdl_error 
)

Constructor.

Parameters
operationThe operation that has failed.
use_sdl_errorIf 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.


The documentation for this struct was generated from the following files: