OpenTTD Source: GRFError Struct Reference

OpenTTD Source 14.1

Public Member Functions | Data Fields
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...

## 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 109 of file newgrf_config.h.

## Constructor & Destructor Documentation

## ◆ GRFError()

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

Construct a new GRFError.

Parameters

  severity | The severity of this error.
  message | The actual error-string.

Definition at line 174 of file newgrf_config.cpp.

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

- src/newgrf_config.h
- src/newgrf_config.cpp