OpenTTD Source: src/error_func.h File Reference

OpenTTD Source 14.0-beta3

Macros | Functions
error_func.h File Reference
`#include "3rdparty/fmt/format.h"`

Go to the source code of this file.

## Macros
#define | UserError(format_string, ...) UserErrorI(fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
#define | FatalError(format_string, ...) FatalErrorI(fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))

## Functions
void | UserErrorI (const std::string &str)
| Error handling for fatal user errors. More...
void | FatalErrorI (const std::string &str)
| Error handling for fatal non-user errors. More...

## Detailed Description

Error reporting related functions.

Definition in file error_func.h.

## Function Documentation

## ◆ FatalErrorI()

void FatalErrorI | ( | const std::string & | msg | ) |

Error handling for fatal non-user errors.

Parameters

  str | the string to print.

Note
  Does NEVER return.

Error handling for fatal non-user errors.

Parameters

  s | Format string.

Note
  Function does not return.

Definition at line 135 of file openttd.cpp.

References VideoDriver::GetInstance().

## ◆ UserErrorI()

void UserErrorI | ( | const std::string & | str | ) |

Error handling for fatal user errors.

Parameters

  str | the string to print.

Note
  Does NEVER return.

Definition at line 114 of file openttd.cpp.