OpenTTD Source 20241224-master-gf74b0cf984
GRFError Struct Reference

Information about why GRF had problems during initialisation. More...

#include <newgrf_config.h>

Public Member Functions

 GRFError (StringID severity, StringID message=0)
 Construct a new GRFError.
 

Data Fields

std::string custom_message {}
 Custom message (if present)
 
std::string data {}
 Additional data for message and custom_message.
 
StringID message {}
 Default message.
 
StringID severity {}
 Info / Warning / Error / Fatal.
 
std::array< uint32_t, 2 > param_value {}
 Values of GRF parameters to show for message and custom_message.
 

Detailed Description

Information about why GRF had problems during initialisation.

Definition at line 108 of file newgrf_config.h.

Constructor & Destructor Documentation

◆ GRFError()

GRFError::GRFError ( StringID  severity,
StringID  message = 0 
)

Construct a new GRFError.

Parameters
severityThe severity of this error.
messageThe actual error-string.

Definition at line 167 of file newgrf_config.cpp.

Field Documentation

◆ custom_message

std::string GRFError::custom_message {}

Custom message (if present)

Definition at line 111 of file newgrf_config.h.

◆ data

std::string GRFError::data {}

Additional data for message and custom_message.

Definition at line 112 of file newgrf_config.h.

Referenced by DisableStaticNewGRFInfluencingNonStaticNewGRFs(), and TranslateGRFStrings().

◆ message

StringID GRFError::message {}

Default message.

Definition at line 113 of file newgrf_config.h.

◆ param_value

std::array<uint32_t, 2> GRFError::param_value {}

Values of GRF parameters to show for message and custom_message.

Definition at line 115 of file newgrf_config.h.

Referenced by IndustriesChangeInfo(), IndustrytilesChangeInfo(), and TownHouseChangeInfo().

◆ severity

StringID GRFError::severity {}

Info / Warning / Error / Fatal.

Definition at line 114 of file newgrf_config.h.


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