|
BWAPI
|
#include <Error.h>


Public Member Functions | |
| Error () | |
| Error (int id) | |
| std::string | toString () const |
| const char * | c_str () const |
Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError.
| BWAPI::Error::Error | ( | int | id | ) |
| const char * BWAPI::Error::c_str | ( | ) | const |


| std::string BWAPI::Error::toString | ( | ) | const |
Returns the name of the error. For example Errors::Insufficient_Minerals?.toString() will return a std::string object containing "Insufficient Minerals".


1.7.6.1