The Battle for Wesnoth  1.15.2+dev
Public Member Functions | Private Attributes | List of all members
bad_enum_cast Class Reference

#include <make_enum.hpp>

Inheritance diagram for bad_enum_cast:
Inheritance graph

Public Member Functions

 bad_enum_cast (const std::string &enumname, const std::string &str)
 
virtual ~bad_enum_cast () noexcept
 
const char * what () const noexcept
 
const char * type () const noexcept
 
const char * value () const noexcept
 

Private Attributes

std::string message
 
std::string name
 
std::string bad_val
 

Detailed Description

Definition at line 93 of file make_enum.hpp.

Constructor & Destructor Documentation

◆ bad_enum_cast()

bad_enum_cast::bad_enum_cast ( const std::string &  enumname,
const std::string &  str 
)
inline

Definition at line 96 of file make_enum.hpp.

◆ ~bad_enum_cast()

virtual bad_enum_cast::~bad_enum_cast ( )
inlinevirtualnoexcept

Definition at line 102 of file make_enum.hpp.

Member Function Documentation

◆ type()

const char* bad_enum_cast::type ( ) const
inlinenoexcept

Definition at line 109 of file make_enum.hpp.

References name.

◆ value()

const char* bad_enum_cast::value ( ) const
inlinenoexcept

Definition at line 114 of file make_enum.hpp.

References bad_val.

Referenced by ai::lua_goal::add_targets().

◆ what()

const char* bad_enum_cast::what ( ) const
inlinenoexcept

Definition at line 104 of file make_enum.hpp.

References message.

Referenced by make_enum_detail::debug_conversion_error().

Member Data Documentation

◆ bad_val

std::string bad_enum_cast::bad_val
private

Definition at line 120 of file make_enum.hpp.

Referenced by value().

◆ message

std::string bad_enum_cast::message
private

Definition at line 120 of file make_enum.hpp.

Referenced by what().

◆ name

std::string bad_enum_cast::name
private

Definition at line 120 of file make_enum.hpp.

Referenced by type().


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