BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
BWAPI::Error Class Reference

#include <Error.h>

Inheritance diagram for BWAPI::Error:
Inheritance graph
[legend]
Collaboration diagram for BWAPI::Error:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Error ()
 Error (int id)
std::string toString () const
const char * c_str () const

Detailed Description

Functions in BWAPI may set an error code. To retrieve the error code, call Game::getLastError.


Constructor & Destructor Documentation


Member Function Documentation

const char * BWAPI::Error::c_str ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

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".

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines