twml_exception Struct Reference

Helper class, don't construct this directly. More...

#include <wml_exception.hpp>

Collaboration diagram for twml_exception:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Helper class, don't construct this directly.

Definition at line 76 of file wml_exception.hpp.


Constructor & Destructor Documentation

twml_exception::twml_exception ( const t_string user_msg,
const std::string &  dev_msg 
)

Definition at line 40 of file wml_exception.cpp.


Member Function Documentation

void twml_exception::show ( display disp  ) 

Shows the error in a dialog.

Parameters:
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().


Member Data Documentation

Definition at line 84 of file wml_exception.hpp.

Referenced by main(), show(), and map_editor::valid_mapdata().

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().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs