The Battle for Wesnoth  1.15.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:
Inheritance graph

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 29 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ error() [1/2]

game::error::error ( )
inline

Definition at line 33 of file exceptions.hpp.

Referenced by network_asio::connection::poll().

◆ error() [2/2]

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

Definition at line 34 of file exceptions.hpp.

◆ ~error()

game::error::~error ( )
inlinenoexcept

Definition at line 35 of file exceptions.hpp.

Member Function Documentation

◆ what()

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

Member Data Documentation

◆ message

std::string game::error::message

Definition at line 31 of file exceptions.hpp.

Referenced by ad_hoc_addon_fetch_session(), async_send_doc(), wesnothd::ban_manager::ban(), default_map_generator::create_scenario(), savegame::save_index_class::data(), gui2::dialogs::game_load::display_savegame(), ai::stage_unit_formulas::do_play_stage(), wfl::attack_candidate_action::evaluate(), exception_translator_config(), exception_translator_game(), wfl::formula::execute(), wfl::base_candidate_action::execute_formula(), wfl::formula_error::formula_error(), editor::editor_map::from_string(), help::generate_contents(), default_map_generator::generate_map(), get_addon_install_info(), get_addon_pbl_info(), gui2::minimap::get_image(), vconfig::get_parsed_config(), wesnothd::server::handle_nickserv(), handle_preprocess_command(), gui2::init(), ng::create_engine::init_all_levels(), game_launcher::launch_game(), wesnothd::ban_manager::list_bans(), wesnothd::ban_manager::list_deleted_bans(), persist_file_context::load(), game_config_manager::load_addons_cfg(), font::load_font_config(), game_launcher::load_game(), game_config_manager::load_game_config(), editor::map_context::load_scenario(), main(), editor::map_context::map_context(), gui2::dialogs::mp_lobby::network_handler(), handle_receive_doc< Handler, ErrorHandler >::operator()(), campaign_controller::play_game(), game_launcher::play_multiplayer(), mp::lobby_info::process_gamelist_diff_impl(), gamemap::read(), wesnothd::ban_manager::read(), game_config::config_cache::read_cache(), wesnothd::server::read_config(), savegame::read_save_file(), persist_file_context::save_context(), savegame::savegame::save_game(), wesnothd::game::save_replay(), wesnothd::game::send_history(), help::help_text_area::set_items(), ng::scenario::set_metadata(), wfl::type_error::type_error(), and wesnothd::ban_manager::unban().


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