\hypertarget{namespaceBWAPI_1_1Errors}{\section{\-B\-W\-A\-P\-I\-:\-:\-Errors \-Namespace \-Reference}
\label{namespaceBWAPI_1_1Errors}\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e}{get\-Error} (std\-::string name)
\item 
std\-::set$<$ \hyperlink{classBWAPI_1_1Error}{\-Error} $>$ \& \hyperlink{namespaceBWAPI_1_1Errors_ab04c1600a518c3d4efde04c1fabd2f7f}{all\-Errors} ()
\item 
void \hyperlink{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38}{init} ()
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a06241b99590d4337fb8ba8bde8dda12e}{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ab9e6ad349c9aecd35947021476ce7f03}{\-Unit\-\_\-\-Not\-\_\-\-Visible}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a9bd697434eeba7f998d829d297ff9692}{\-Unit\-\_\-\-Not\-\_\-\-Owned}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ae87bf1b9df937c064dbf533ed1b14068}{\-Unit\-\_\-\-Busy}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a941a0ccc4f24658bc56963691b312c4a}{\-Incompatible\-\_\-\-Unit\-Type}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_afcf0612689b77dcfdf976a6571af8c66}{\-Incompatible\-\_\-\-Tech\-Type}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ae8117822d710954f1e73dc7412a38286}{\-Incompatible\-\_\-\-State}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ac52e8b0baa403df938897161abcd74d7}{\-Already\-\_\-\-Researched}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aaa2dd9f049333e4e9ded55be33249ba0}{\-Fully\-\_\-\-Upgraded}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a2e279fb3bd59b35e684773c32da472d2}{\-Currently\-\_\-\-Researching}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a42ff112953770de8bc1678622ae4b9c3}{\-Currently\-\_\-\-Upgrading}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a02487572128a3c4fe7b143a3b65fba63}{\-Insufficient\-\_\-\-Minerals}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a0f640096e792c4811b7f436a3f783bbf}{\-Insufficient\-\_\-\-Gas}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a1f9f3912d88a5ebcaa5e083ee78d2003}{\-Insufficient\-\_\-\-Supply}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aa22758393292b2c6d60eb30ef5861a34}{\-Insufficient\-\_\-\-Energy}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a0d4d3a0144294a91c7094324d7e6e412}{\-Insufficient\-\_\-\-Tech}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a03c6fe09d0a141a7164bb445092ff68d}{\-Insufficient\-\_\-\-Ammo}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a6b21f684b0bf009c26971e36e018d399}{\-Insufficient\-\_\-\-Space}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a1038ad1acef14e70fa9e38155f9b8a41}{\-Invalid\-\_\-\-Tile\-\_\-\-Position}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a00a20520177a4ce36b4357579b9a9fc0}{\-Unbuildable\-\_\-\-Location}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a8270760cacdd332e1ae06a16af247488}{\-Unreachable\-\_\-\-Location}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_adcb61901f6f1f6b85d015fd36c9639d3}{\-Out\-\_\-\-Of\-\_\-\-Range}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a5c9ddaebbefb71519bc6b0e925209939}{\-Unable\-\_\-\-To\-\_\-\-Hit}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ab47e72b46f42427da052edeea9a4eae4}{\-Access\-\_\-\-Denied}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a8414bd7c5d9b3afcfabca86d3dbc63c1}{\-File\-\_\-\-Not\-\_\-\-Found}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a94ee29a17938e5944e0efae85966353a}{\-Invalid\-\_\-\-Parameter}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a470d595353e01ba617be10dc4b381d80}{\-None}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a82faf32e30d4341e690d5d53e78b1536}{\-Unknown}
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{namespaceBWAPI_1_1Errors_ab04c1600a518c3d4efde04c1fabd2f7f}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!all\-Errors@{all\-Errors}}
\index{all\-Errors@{all\-Errors}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{all\-Errors}]{\setlength{\rightskip}{0pt plus 5cm}std\-::set$<${\bf \-Error}$>$\& {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::all\-Errors} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Errors_ab04c1600a518c3d4efde04c1fabd2f7f}
\-The set of all the error codes. \hypertarget{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!get\-Error@{get\-Error}}
\index{get\-Error@{get\-Error}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{get\-Error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::get\-Error} (
\begin{DoxyParamCaption}
\item[{std\-::string}]{name}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e}
\-Given the name of an error, this function will return the error code. \-For example\-: \hyperlink{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e}{\-Errors\-::get\-Error}(\char`\"{}\-Unbuildable Location\char`\"{}) will return \hyperlink{namespaceBWAPI_1_1Errors_a00a20520177a4ce36b4357579b9a9fc0}{\-Errors\-::\-Unbuildable\-\_\-\-Location}?. \hypertarget{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!init@{init}}
\index{init@{init}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::init} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38}


\subsection{\-Variable \-Documentation}
\hypertarget{namespaceBWAPI_1_1Errors_ab47e72b46f42427da052edeea9a4eae4}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Access\-\_\-\-Denied@{\-Access\-\_\-\-Denied}}
\index{\-Access\-\_\-\-Denied@{\-Access\-\_\-\-Denied}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Access\-\_\-\-Denied}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Access\-\_\-\-Denied}}}\label{namespaceBWAPI_1_1Errors_ab47e72b46f42427da052edeea9a4eae4}
\-Returned if you try to get information that is not allowed with the given flag settings. \-For example, trying to read the enemy's resource counts while the \-Complete\-Map\-Information? flag is not enabled will return this error. \-Similarly, trying to read the coordinates of the screen or mouse while the \-User\-Input flag is not enabled will also return this error. \hypertarget{namespaceBWAPI_1_1Errors_ac52e8b0baa403df938897161abcd74d7}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Already\-\_\-\-Researched@{\-Already\-\_\-\-Researched}}
\index{\-Already\-\_\-\-Researched@{\-Already\-\_\-\-Researched}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Already\-\_\-\-Researched}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Already\-\_\-\-Researched}}}\label{namespaceBWAPI_1_1Errors_ac52e8b0baa403df938897161abcd74d7}
\-Returned if you try to research something that is already researched. \hypertarget{namespaceBWAPI_1_1Errors_a2e279fb3bd59b35e684773c32da472d2}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Currently\-\_\-\-Researching@{\-Currently\-\_\-\-Researching}}
\index{\-Currently\-\_\-\-Researching@{\-Currently\-\_\-\-Researching}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Currently\-\_\-\-Researching}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Currently\-\_\-\-Researching}}}\label{namespaceBWAPI_1_1Errors_a2e279fb3bd59b35e684773c32da472d2}
\-Returned if you try to research something that is already being researched. \hypertarget{namespaceBWAPI_1_1Errors_a42ff112953770de8bc1678622ae4b9c3}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Currently\-\_\-\-Upgrading@{\-Currently\-\_\-\-Upgrading}}
\index{\-Currently\-\_\-\-Upgrading@{\-Currently\-\_\-\-Upgrading}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Currently\-\_\-\-Upgrading}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Currently\-\_\-\-Upgrading}}}\label{namespaceBWAPI_1_1Errors_a42ff112953770de8bc1678622ae4b9c3}
\-Returned if you try to upgrade something that is already being upgraded. \hypertarget{namespaceBWAPI_1_1Errors_a8414bd7c5d9b3afcfabca86d3dbc63c1}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-File\-\_\-\-Not\-\_\-\-Found@{\-File\-\_\-\-Not\-\_\-\-Found}}
\index{\-File\-\_\-\-Not\-\_\-\-Found@{\-File\-\_\-\-Not\-\_\-\-Found}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-File\-\_\-\-Not\-\_\-\-Found}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-File\-\_\-\-Not\-\_\-\-Found}}}\label{namespaceBWAPI_1_1Errors_a8414bd7c5d9b3afcfabca86d3dbc63c1}
\-Used when a file can't be found. \hypertarget{namespaceBWAPI_1_1Errors_aaa2dd9f049333e4e9ded55be33249ba0}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Fully\-\_\-\-Upgraded@{\-Fully\-\_\-\-Upgraded}}
\index{\-Fully\-\_\-\-Upgraded@{\-Fully\-\_\-\-Upgraded}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Fully\-\_\-\-Upgraded}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Fully\-\_\-\-Upgraded}}}\label{namespaceBWAPI_1_1Errors_aaa2dd9f049333e4e9ded55be33249ba0}
\-Returned if you try to upgrade something that is already fully upgraded. \hypertarget{namespaceBWAPI_1_1Errors_ae8117822d710954f1e73dc7412a38286}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Incompatible\-\_\-\-State@{\-Incompatible\-\_\-\-State}}
\index{\-Incompatible\-\_\-\-State@{\-Incompatible\-\_\-\-State}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Incompatible\-\_\-\-State}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Incompatible\-\_\-\-State}}}\label{namespaceBWAPI_1_1Errors_ae8117822d710954f1e73dc7412a38286}
\-Returned if you to do something like try to cancel an upgrade when the unit isn't upgrading. \hypertarget{namespaceBWAPI_1_1Errors_afcf0612689b77dcfdf976a6571af8c66}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Incompatible\-\_\-\-Tech\-Type@{\-Incompatible\-\_\-\-Tech\-Type}}
\index{\-Incompatible\-\_\-\-Tech\-Type@{\-Incompatible\-\_\-\-Tech\-Type}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Incompatible\-\_\-\-Tech\-Type}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Incompatible\-\_\-\-Tech\-Type}}}\label{namespaceBWAPI_1_1Errors_afcf0612689b77dcfdf976a6571af8c66}
\-Returned when trying to use a tech type with the wrong \hyperlink{classBWAPI_1_1Unit_ab2c7e5f5be9ddb12a3a0b77c198d3dc0}{\-Unit\-::use\-Tech} method. \hypertarget{namespaceBWAPI_1_1Errors_a941a0ccc4f24658bc56963691b312c4a}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Incompatible\-\_\-\-Unit\-Type@{\-Incompatible\-\_\-\-Unit\-Type}}
\index{\-Incompatible\-\_\-\-Unit\-Type@{\-Incompatible\-\_\-\-Unit\-Type}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Incompatible\-\_\-\-Unit\-Type}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Incompatible\-\_\-\-Unit\-Type}}}\label{namespaceBWAPI_1_1Errors_a941a0ccc4f24658bc56963691b312c4a}
\-Returned if you do something weird like try to build a \-Pylon with an \-S\-C\-V, or train \-Vultures in a \-Barracks, or order a \-Hydralisk to lay a spider mine. \hypertarget{namespaceBWAPI_1_1Errors_a03c6fe09d0a141a7164bb445092ff68d}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Ammo@{\-Insufficient\-\_\-\-Ammo}}
\index{\-Insufficient\-\_\-\-Ammo@{\-Insufficient\-\_\-\-Ammo}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Ammo}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Ammo}}}\label{namespaceBWAPI_1_1Errors_a03c6fe09d0a141a7164bb445092ff68d}
\-Returned if you do something like try to lay \-Spider \-Mines when your \-Vulture is out of \-Spider \-Mines. \-Same thing with \-Reavers and \-Scarabs. \hypertarget{namespaceBWAPI_1_1Errors_aa22758393292b2c6d60eb30ef5861a34}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Energy@{\-Insufficient\-\_\-\-Energy}}
\index{\-Insufficient\-\_\-\-Energy@{\-Insufficient\-\_\-\-Energy}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Energy}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Energy}}}\label{namespaceBWAPI_1_1Errors_aa22758393292b2c6d60eb30ef5861a34}
\-Returned if you to do something like try to order a \-Defiler to cast a \-Dark \-Swarm without enough energy. \hypertarget{namespaceBWAPI_1_1Errors_a0f640096e792c4811b7f436a3f783bbf}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Gas@{\-Insufficient\-\_\-\-Gas}}
\index{\-Insufficient\-\_\-\-Gas@{\-Insufficient\-\_\-\-Gas}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Gas}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Gas}}}\label{namespaceBWAPI_1_1Errors_a0f640096e792c4811b7f436a3f783bbf}
\-Returned if you try to train or build something without enough vespene gas. \hypertarget{namespaceBWAPI_1_1Errors_a02487572128a3c4fe7b143a3b65fba63}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Minerals@{\-Insufficient\-\_\-\-Minerals}}
\index{\-Insufficient\-\_\-\-Minerals@{\-Insufficient\-\_\-\-Minerals}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Minerals}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Minerals}}}\label{namespaceBWAPI_1_1Errors_a02487572128a3c4fe7b143a3b65fba63}
\-Returned if you try to train or build something without enough minerals. \hypertarget{namespaceBWAPI_1_1Errors_a6b21f684b0bf009c26971e36e018d399}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Space@{\-Insufficient\-\_\-\-Space}}
\index{\-Insufficient\-\_\-\-Space@{\-Insufficient\-\_\-\-Space}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Space}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Space}}}\label{namespaceBWAPI_1_1Errors_a6b21f684b0bf009c26971e36e018d399}
\-Returned if you try to train more \-Interceptors than the \-Carrier can hold, try to train more \-Scarabs than a \-Reaver can hold, or try to load more units into a transport than there is space. \hypertarget{namespaceBWAPI_1_1Errors_a1f9f3912d88a5ebcaa5e083ee78d2003}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Supply@{\-Insufficient\-\_\-\-Supply}}
\index{\-Insufficient\-\_\-\-Supply@{\-Insufficient\-\_\-\-Supply}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Supply}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Supply}}}\label{namespaceBWAPI_1_1Errors_a1f9f3912d88a5ebcaa5e083ee78d2003}
\-Returned if you try to train something without enough supply. \hypertarget{namespaceBWAPI_1_1Errors_a0d4d3a0144294a91c7094324d7e6e412}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Insufficient\-\_\-\-Tech@{\-Insufficient\-\_\-\-Tech}}
\index{\-Insufficient\-\_\-\-Tech@{\-Insufficient\-\_\-\-Tech}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Insufficient\-\_\-\-Tech}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Insufficient\-\_\-\-Tech}}}\label{namespaceBWAPI_1_1Errors_a0d4d3a0144294a91c7094324d7e6e412}
\-Returned if you do something like try to train \-Medics when you don't have an \-Academy, or try to lay \-Spider \-Mines before spider mines have been researched. \hypertarget{namespaceBWAPI_1_1Errors_a94ee29a17938e5944e0efae85966353a}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Invalid\-\_\-\-Parameter@{\-Invalid\-\_\-\-Parameter}}
\index{\-Invalid\-\_\-\-Parameter@{\-Invalid\-\_\-\-Parameter}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Invalid\-\_\-\-Parameter}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Invalid\-\_\-\-Parameter}}}\label{namespaceBWAPI_1_1Errors_a94ee29a17938e5944e0efae85966353a}
\-Used for bad parameters, like passing \-N\-U\-L\-L or an empty string. \hypertarget{namespaceBWAPI_1_1Errors_a1038ad1acef14e70fa9e38155f9b8a41}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Invalid\-\_\-\-Tile\-\_\-\-Position@{\-Invalid\-\_\-\-Tile\-\_\-\-Position}}
\index{\-Invalid\-\_\-\-Tile\-\_\-\-Position@{\-Invalid\-\_\-\-Tile\-\_\-\-Position}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Invalid\-\_\-\-Tile\-\_\-\-Position}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Invalid\-\_\-\-Tile\-\_\-\-Position}}}\label{namespaceBWAPI_1_1Errors_a1038ad1acef14e70fa9e38155f9b8a41}
\-Returned if you try to build a barracks at \hyperlink{namespaceBWAPI_1_1TilePositions_acb9dceafd1b5a020f687a81dfa02a76a}{\-Tile\-Positions\-::\-None} or something similar \hypertarget{namespaceBWAPI_1_1Errors_a470d595353e01ba617be10dc4b381d80}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-None@{\-None}}
\index{\-None@{\-None}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-None}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-None}}}\label{namespaceBWAPI_1_1Errors_a470d595353e01ba617be10dc4b381d80}
\-Used when no error has been encountered. \hypertarget{namespaceBWAPI_1_1Errors_adcb61901f6f1f6b85d015fd36c9639d3}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Out\-\_\-\-Of\-\_\-\-Range@{\-Out\-\_\-\-Of\-\_\-\-Range}}
\index{\-Out\-\_\-\-Of\-\_\-\-Range@{\-Out\-\_\-\-Of\-\_\-\-Range}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Out\-\_\-\-Of\-\_\-\-Range}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Out\-\_\-\-Of\-\_\-\-Range}}}\label{namespaceBWAPI_1_1Errors_adcb61901f6f1f6b85d015fd36c9639d3}
\-Returned if you order an immovable unit, like a \-Protoss \-Photon \-Cannon, to attack a unit that is out of range. \hypertarget{namespaceBWAPI_1_1Errors_a5c9ddaebbefb71519bc6b0e925209939}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unable\-\_\-\-To\-\_\-\-Hit@{\-Unable\-\_\-\-To\-\_\-\-Hit}}
\index{\-Unable\-\_\-\-To\-\_\-\-Hit@{\-Unable\-\_\-\-To\-\_\-\-Hit}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unable\-\_\-\-To\-\_\-\-Hit}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unable\-\_\-\-To\-\_\-\-Hit}}}\label{namespaceBWAPI_1_1Errors_a5c9ddaebbefb71519bc6b0e925209939}
\-Returned if you do something like order a \-Vulture to attack a flying unit. \hypertarget{namespaceBWAPI_1_1Errors_a00a20520177a4ce36b4357579b9a9fc0}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unbuildable\-\_\-\-Location@{\-Unbuildable\-\_\-\-Location}}
\index{\-Unbuildable\-\_\-\-Location@{\-Unbuildable\-\_\-\-Location}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unbuildable\-\_\-\-Location}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unbuildable\-\_\-\-Location}}}\label{namespaceBWAPI_1_1Errors_a00a20520177a4ce36b4357579b9a9fc0}
\-Returned if you try to construct a building on an unbuildable location \hypertarget{namespaceBWAPI_1_1Errors_ae87bf1b9df937c064dbf533ed1b14068}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unit\-\_\-\-Busy@{\-Unit\-\_\-\-Busy}}
\index{\-Unit\-\_\-\-Busy@{\-Unit\-\_\-\-Busy}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unit\-\_\-\-Busy}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unit\-\_\-\-Busy}}}\label{namespaceBWAPI_1_1Errors_ae87bf1b9df937c064dbf533ed1b14068}
\-Returned when trying to order a unit to do something when it is performing another order or is in a state which prevents it from performing the desired order. \-For example, ordering a \-Terran \-Engineering \-Bay to upgrade something while it is already upgrading something else will return this error. \-Similarly, trying to train units from a factory that is lifted will return this error. \hypertarget{namespaceBWAPI_1_1Errors_a06241b99590d4337fb8ba8bde8dda12e}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist@{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist}}
\index{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist@{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist}}}\label{namespaceBWAPI_1_1Errors_a06241b99590d4337fb8ba8bde8dda12e}
\-Returned if you try to order a unit or get information from a unit that no longer exists. \hypertarget{namespaceBWAPI_1_1Errors_a9bd697434eeba7f998d829d297ff9692}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unit\-\_\-\-Not\-\_\-\-Owned@{\-Unit\-\_\-\-Not\-\_\-\-Owned}}
\index{\-Unit\-\_\-\-Not\-\_\-\-Owned@{\-Unit\-\_\-\-Not\-\_\-\-Owned}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unit\-\_\-\-Not\-\_\-\-Owned}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unit\-\_\-\-Not\-\_\-\-Owned}}}\label{namespaceBWAPI_1_1Errors_a9bd697434eeba7f998d829d297ff9692}
\-Returned when attempting to order a unit that \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} does not own (i.\-e. can't order enemy army to go away) \hypertarget{namespaceBWAPI_1_1Errors_ab9e6ad349c9aecd35947021476ce7f03}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unit\-\_\-\-Not\-\_\-\-Visible@{\-Unit\-\_\-\-Not\-\_\-\-Visible}}
\index{\-Unit\-\_\-\-Not\-\_\-\-Visible@{\-Unit\-\_\-\-Not\-\_\-\-Visible}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unit\-\_\-\-Not\-\_\-\-Visible}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unit\-\_\-\-Not\-\_\-\-Visible}}}\label{namespaceBWAPI_1_1Errors_ab9e6ad349c9aecd35947021476ce7f03}
\-Returned if you try to retrieve information about a unit that is not currently visible or is dead. \hypertarget{namespaceBWAPI_1_1Errors_a82faf32e30d4341e690d5d53e78b1536}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unknown@{\-Unknown}}
\index{\-Unknown@{\-Unknown}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unknown}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unknown}}}\label{namespaceBWAPI_1_1Errors_a82faf32e30d4341e690d5d53e78b1536}
\-Used when the error code is not recognized or can not be determined. \hypertarget{namespaceBWAPI_1_1Errors_a8270760cacdd332e1ae06a16af247488}{\index{\-B\-W\-A\-P\-I\-::\-Errors@{\-B\-W\-A\-P\-I\-::\-Errors}!\-Unreachable\-\_\-\-Location@{\-Unreachable\-\_\-\-Location}}
\index{\-Unreachable\-\_\-\-Location@{\-Unreachable\-\_\-\-Location}!BWAPI::Errors@{\-B\-W\-A\-P\-I\-::\-Errors}}
\subsubsection[{\-Unreachable\-\_\-\-Location}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf \-Error} {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::\-Unreachable\-\_\-\-Location}}}\label{namespaceBWAPI_1_1Errors_a8270760cacdd332e1ae06a16af247488}
\-Returned if you try to construct a building where the worker cannot reach based on static map data. 