The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Public Attributes | List of all members
wesnothd_connection_error Struct Reference

an error occurred inside the underlying network communication code (boost asio) TODO: find a short name More...

#include <wesnothd_connection_error.hpp>

Inheritance diagram for wesnothd_connection_error:
Inheritance graph

Public Member Functions

 wesnothd_connection_error (const boost::system::error_code &error, const std::string &msg="")
 
- Public Member Functions inherited from wesnothd_error
 wesnothd_error (const std::string &error)
 
- Public Member Functions inherited from game::error
 error ()
 
 error (const std::string &msg)
 
 ~error () noexcept
 
const char * what () const noexcept
 
- Public Member Functions inherited from lua_jailbreak_exception
virtual ~lua_jailbreak_exception () noexcept
 
void store () const noexcept
 Stores a copy the current exception to be rethrown. More...
 

Public Attributes

std::string user_message
 User-friendly and potentially translated message for use in the UI. More...
 
- Public Attributes inherited from game::error
std::string message
 

Additional Inherited Members

- Static Public Member Functions inherited from lua_jailbreak_exception
static void rethrow ()
 Rethrows the stored exception. More...
 
- Static Protected Attributes inherited from lua_jailbreak_exception
static lua_jailbreak_exceptionjailbreak_exception = nullptr
 The exception to be rethrown. More...
 

Detailed Description

an error occurred inside the underlying network communication code (boost asio) TODO: find a short name

Definition at line 47 of file wesnothd_connection_error.hpp.

Constructor & Destructor Documentation

◆ wesnothd_connection_error()

wesnothd_connection_error::wesnothd_connection_error ( const boost::system::error_code &  error,
const std::string &  msg = "" 
)
inline

Definition at line 49 of file wesnothd_connection_error.hpp.

Member Data Documentation

◆ user_message

std::string wesnothd_connection_error::user_message

User-friendly and potentially translated message for use in the UI.

Definition at line 55 of file wesnothd_connection_error.hpp.

Referenced by game_launcher::play_multiplayer().


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