15 #ifndef GAME_ERRORS_HPP_INCLUDED
16 #define GAME_ERRORS_HPP_INCLUDED
74 ,
const bool show_replay_
75 ,
const bool cancel_orders_
76 ,
const bool select_difficulty_
78 ,
bool skip_version_check_ =
false)
const wesnothd::game & game_
#define IMPLEMENT_LUA_JAILBREAK_EXCEPTION(type)
Helper macro for classes deriving from tlua_jailbreak_exception.
static bool skip_version_check
Error used when game loading fails.
Error used when game saving fails.
load_game_failed(const std::string &msg)
lua_error(const std::string &msg, const std::string &context)
mp_server_error(const std::string &msg)
Error used for any general game error, e.g.
save_game_failed(const std::string &msg)
static bool select_difficulty
Base class for exceptions that want to be thrown 'through' lua.
Exception used to signal that the user has decided to abort a game, and to load another game instead...
lua_error(const std::string &msg)
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
Base class for all the errors encountered by the engine.
game_error(const std::string &msg)
static bool cancel_orders
GLsizei const GLcharARB ** string
static std::string difficulty
load_game_exception(const std::string &game_, const bool show_replay_, const bool cancel_orders_, const bool select_difficulty_, const std::string &difficulty_, bool skip_version_check_=false)
Error used to report an error in a lua script or in the lua interpreter.