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. | |
| GRFError (const GRFError &error) | |
| Create a new GRFError that is a deep copy of an existing error message. | |
Data Fields | |
| char * | custom_message |
| Custom message (if present). | |
| char * | data |
| Additional data for message and custom_message. | |
| StringID | message |
| Default message. | |
| StringID | severity |
| Info / Warning / Error / Fatal. | |
| uint8 | num_params |
| Number of additinal parameters for message and custom_message (0, 1 or 2). | |
| uint32 | param_value [2] |
| Values of GRF parameters to show for message and custom_message. | |
Information about why GRF had problems during initialisation.
Definition at line 93 of file newgrf_config.h.
Construct a new GRFError.
| severity | The severity of this error. | |
| message | The actual error-string. |
Definition at line 159 of file newgrf_config.cpp.
| GRFError::GRFError | ( | const GRFError & | error | ) |
Create a new GRFError that is a deep copy of an existing error message.
| error | The GRFError object to make a copy of. |
Definition at line 169 of file newgrf_config.cpp.
References custom_message, data, and param_value.
1.7.1