The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 () throw ()
 
const char * what () const throw ()
 

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

Constructor & Destructor Documentation

game::error::error ( )
inline

Definition at line 31 of file exceptions.hpp.

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

Definition at line 32 of file exceptions.hpp.

game::error::~error ( )
throw (
)
inline

Definition at line 33 of file exceptions.hpp.

Member Function Documentation

const char* game::error::what ( ) const
throw (
)
inline

Member Data Documentation

std::string game::error::message

Definition at line 29 of file exceptions.hpp.

Referenced by ad_hoc_addon_fetch_session(), wesnothd::async_send_doc(), wesnothd::ban_manager::ban(), default_map_generator::create_scenario(), savegame::save_index_class::data(), ai::stage_unit_formulas::do_play_stage(), enter_lobby_mode(), game_logic::attack_candidate_action::evaluate(), exception_translator_config(), exception_translator_game(), exception_translator_network(), game_logic::formula::execute(), game_logic::base_candidate_action::execute_formula(), editor::editor_map::from_string(), game_info::game_info(), help::generate_contents(), default_map_generator::generate_map(), get_addon_install_info(), get_addon_pbl_info(), gui2::tminimap::get_image(), vconfig::get_parsed_config(), wesnothd::server::handle_login(), wesnothd::server::handle_nickserv(), handle_preprocess_command(), ng::create_engine::init_all_levels(), wesnothd::ban_manager::list_bans(), wesnothd::ban_manager::list_deleted_bans(), persist_file_context::load(), game_config_manager::load_addons_cfg(), cutter::load_config(), font::load_font_config(), game_launcher::load_game(), game_config_manager::load_game_config(), editor::map_context::load_scenario(), gui2::load_settings(), main(), editor::map_context::map_context(), gui2::tlobby_main::network_handler(), wesnothd::handle_receive_doc< Handler, ErrorHandler >::operator()(), campaign_controller::play_game(), game_launcher::play_multiplayer(), mp::gamebrowser::populate_game_item_map_info(), lobby_info::process_gamelist_diff(), mp::ui::process_network_data(), gamemap::read(), wesnothd::ban_manager::read(), game_config::config_cache::read_cache(), wesnothd::server::read_config(), savegame::read_save_file(), campaignd::server::run(), 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(), help::show_help(), and wesnothd::ban_manager::unban().


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