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

#include <formula.hpp>

Inheritance diagram for wfl::formula_error:

Public Member Functions

 formula_error ()
 
 formula_error (const std::string &type, const std::string &formula, const std::string &file, int line)
 
 ~formula_error () noexcept
 
- Public Member Functions inherited from game::error
 error ()
 
 error (const std::string &msg)
 
 ~error () noexcept
 
const char * what () const noexcept
 

Public Attributes

std::string type
 
std::string formula
 
std::string filename
 
int line
 
- Public Attributes inherited from game::error
std::string message
 

Detailed Description

Definition at line 91 of file formula.hpp.

Constructor & Destructor Documentation

◆ formula_error() [1/2]

wfl::formula_error::formula_error ( )
inline

Definition at line 93 of file formula.hpp.

◆ formula_error() [2/2]

wfl::formula_error::formula_error ( const std::string &  type,
const std::string &  formula,
const std::string &  file,
int  line 
)

Definition at line 277 of file formula.cpp.

References filename, line, game::error::message, and type.

◆ ~formula_error()

wfl::formula_error::~formula_error ( )
inlinenoexcept

Definition at line 104 of file formula.hpp.

Member Data Documentation

◆ filename

std::string wfl::formula_error::filename

Definition at line 108 of file formula.hpp.

Referenced by formula_error().

◆ formula

std::string wfl::formula_error::formula

Definition at line 107 of file formula.hpp.

◆ line

int wfl::formula_error::line

Definition at line 109 of file formula.hpp.

Referenced by formula_error().

◆ type

std::string wfl::formula_error::type

Definition at line 106 of file formula.hpp.

Referenced by formula_error().


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