OpenTTD NoAI API
|
Class that handles all error related functions. More...
Class that handles all error related functions.
All categories errors can be divided in.
All general related error messages.
static ErrorCategories AIError::GetErrorCategory | ( | ) | [static] |
Check the membership of the last thrown error.
static AIErrorType AIError::GetLastError | ( | ) | [static] |
Get the last error.
static char* AIError::GetLastErrorString | ( | ) | [static] |
Get the last error in string format (for human readability).
static void AIError::RegisterErrorMap | ( | StringID | internal_string_id, |
AIErrorType | ai_error_msg | ||
) | [static] |
Map an internal OpenTTD error message to its NoAI equivalent.
internal_string_id | The OpenTTD StringID used for an error. |
ai_error_msg | The NoAI equivalent error message. |
static void AIError::RegisterErrorMapString | ( | AIErrorType | ai_error_msg, |
const char * | message | ||
) | [static] |
Map an internal OpenTTD error message to its NoAI equivalent.
ai_error_msg | The NoAI error message representation. |
message | The string representation of this error message, used for debug purposes. |
static AIErrorType AIError::StringToError | ( | StringID | internal_string_id | ) | [static] |
Get the error based on the OpenTTD StringID.
internal_string_id | The string to convert. |