OpenTTD AI API
20241117-master-ga6c526cfa0
|
Class that handles all error related functions. More...
Public Types | |
enum | ErrorCategories { ERR_CAT_NONE , ERR_CAT_GENERAL , ERR_CAT_VEHICLE , ERR_CAT_STATION , ERR_CAT_BRIDGE , ERR_CAT_TUNNEL , ERR_CAT_TILE , ERR_CAT_SIGN , ERR_CAT_RAIL , ERR_CAT_ROAD , ERR_CAT_ORDER , ERR_CAT_MARINE , ERR_CAT_WAYPOINT , ERR_CAT_BIT_SIZE } |
All categories errors can be divided in. More... | |
enum | ErrorMessages { ERR_NONE , ERR_UNKNOWN , ERR_PRECONDITION_FAILED , ERR_PRECONDITION_STRING_TOO_LONG , ERR_PRECONDITION_INVALID_COMPANY , ERR_NEWGRF_SUPPLIED_ERROR , ERR_GENERAL_BASE , ERR_NOT_ENOUGH_CASH , ERR_LOCAL_AUTHORITY_REFUSES , ERR_ALREADY_BUILT , ERR_AREA_NOT_CLEAR , ERR_OWNED_BY_ANOTHER_COMPANY , ERR_NAME_IS_NOT_UNIQUE , ERR_FLAT_LAND_REQUIRED , ERR_LAND_SLOPED_WRONG , ERR_VEHICLE_IN_THE_WAY , ERR_SITE_UNSUITABLE , ERR_TOO_CLOSE_TO_EDGE , ERR_STATION_TOO_SPREAD_OUT } |
All general related error messages. More... | |
Static Public Member Functions | |
static ErrorCategories | GetErrorCategory () |
Check the membership of the last thrown error. More... | |
static ScriptErrorType | GetLastError () |
Get the last error. More... | |
static string | GetLastErrorString () |
Get the last error in string format (for human readability). More... | |
Class that handles all error related functions.
All categories errors can be divided in.
All general related error messages.
|
static |
Check the membership of the last thrown error.
|
static |
Get the last error.
|
static |
Get the last error in string format (for human readability).