The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Public Attributes | List of all members
game::error Struct Reference

Base class for all the errors encountered by the engine. More...

#include <exceptions.hpp>

Inheritance diagram for game::error:

Public Member Functions

 error ()
 
 error (const std::string &msg)
 
 ~error () noexcept
 
const char * what () const noexcept
 

Public Attributes

std::string message
 

Detailed Description

Base class for all the errors encountered by the engine.

It provides a field for storing custom messages related to the actual error.

Definition at line 28 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ error() [1/2]

game::error::error ( )
inline

Definition at line 32 of file exceptions.hpp.

◆ error() [2/2]

game::error::error ( const std::string &  msg)
inline

Definition at line 33 of file exceptions.hpp.

◆ ~error()

game::error::~error ( )
inlinenoexcept

Definition at line 34 of file exceptions.hpp.

Member Function Documentation

◆ what()

const char* game::error::what ( ) const
inlinenoexcept

Definition at line 36 of file exceptions.hpp.

References message.

Member Data Documentation

◆ message

std::string game::error::message

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