#include <Error.h>
Public Member Functions | |
| Error () | |
| Error (int id) | |
| Error (const Error &other) | |
| Error & | operator= (const Error &other) |
| operator int () const | |
| int | getID () const |
| std::string | toString () const |
Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError.
| BWAPI::Error::Error | ( | int | id | ) |
| BWAPI::Error::Error | ( | const Error & | other | ) |
| int BWAPI::Error::getID | ( | ) | const |
Returns a unique ID for this error.
| BWAPI::Error::operator int | ( | ) | 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