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

Error used to report an error in a lua script or in the lua interpreter. More...

#include <game_errors.hpp>

Inheritance diagram for game::lua_error:

Public Member Functions

 lua_error (const std::string &msg)
 
 lua_error (const std::string &msg, const std::string &context)
 
- 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

Error used to report an error in a lua script or in the lua interpreter.

Definition at line 54 of file game_errors.hpp.

Constructor & Destructor Documentation

◆ lua_error() [1/2]

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

Definition at line 55 of file game_errors.hpp.

◆ lua_error() [2/2]

game::lua_error::lua_error ( const std::string &  msg,
const std::string &  context 
)
inline

Definition at line 56 of file game_errors.hpp.


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