The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
sdl::texception Struct Reference

#include <exception.hpp>

Inheritance diagram for sdl::texception:
Inheritance graph

Public Member Functions

 texception (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 () throw ()
 
const char * what () const throw ()
 

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

sdl::texception::texception ( 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 44 of file exception.cpp.


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