Luanti 5.17.0-dev
Loading...
Searching...
No Matches
GameErrorData Struct Reference

Data provided to Lua for error reporting by the main menu. More...

#include <gameparams.h>

Collaboration diagram for GameErrorData:

Public Member Functions

 GameErrorData ()=default
void setError (const std::string &msg, bool reconnect=false)
 Raise and log an error.

Public Attributes

bool reconnect_requested = false
std::string message

Detailed Description

Data provided to Lua for error reporting by the main menu.

Constructor & Destructor Documentation

◆ GameErrorData()

GameErrorData::GameErrorData ( )
default

Member Function Documentation

◆ setError()

void GameErrorData::setError ( const std::string & msg,
bool reconnect = false )
inline

Raise and log an error.

Parameters
msgEmpty string means no error

References errorstream, message, and reconnect_requested.

Referenced by ClientLauncher::launch_game().

Here is the caller graph for this function:

Member Data Documentation

◆ message

◆ reconnect_requested

bool GameErrorData::reconnect_requested = false

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