OpenTTD Source  1.11.0-beta2
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. More...
 
 GRFError (const GRFError &error)
 Create a new GRFError that is a deep copy of an existing error message. More...
 

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.
 
uint32 param_value [2]
 Values of GRF parameters to show for message and custom_message.
 

Detailed Description

Information about why GRF had problems during initialisation.

Definition at line 112 of file newgrf_config.h.

Constructor & Destructor Documentation

◆ GRFError() [1/2]

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

Construct a new GRFError.

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

Definition at line 180 of file newgrf_config.cpp.

◆ GRFError() [2/2]

GRFError::GRFError ( const GRFError error)

Create a new GRFError that is a deep copy of an existing error message.

Parameters
errorThe GRFError object to make a copy of.

Definition at line 191 of file newgrf_config.cpp.

References param_value.


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