#include <wml_exception.hpp>
Public Member Functions | |
twml_exception (const t_string &user_msg, const std::string &dev_msg) | |
void | show (display &disp) |
Shows the error in a dialog. | |
Public Attributes | |
t_string | user_message |
std::string | dev_message |
The message for developers telling which problem was triggered, this shouldn't be translated. |
Definition at line 76 of file wml_exception.hpp.
twml_exception::twml_exception | ( | const t_string & | user_msg, | |
const std::string & | dev_msg | |||
) |
Definition at line 40 of file wml_exception.cpp.
void twml_exception::show | ( | display & | disp | ) |
Shows the error in a dialog.
disp | The display object to show the message on. |
Definition at line 46 of file wml_exception.cpp.
References _, dev_message, gui::show_error_message(), and user_message.
Referenced by map_editor::edit_resize(), play_game(), and play_replay().
Definition at line 84 of file wml_exception.hpp.
Referenced by main(), show(), and map_editor::valid_mapdata().
std::string twml_exception::dev_message |
The message for developers telling which problem was triggered, this shouldn't be translated.
It's hard for a dev to parse errors in foreign tongues.
Definition at line 91 of file wml_exception.hpp.
Referenced by mp::create::hide_children(), main(), mp::create::process_event(), mp::gamebrowser::set_game_items(), show(), and map_editor::valid_mapdata().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |