\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 
void \hyperlink{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38}{init} ()
\item 
\hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e}{get\-Error} (std\-::string name)
\item 
const std\-::set$<$ \hyperlink{classBWAPI_1_1Error}{\-Error} $>$ \& \hyperlink{namespaceBWAPI_1_1Errors_a1ad58c07763db21566d7acd5306eff9f}{all\-Errors} ()
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a31be61f1abfbca8d07c596273ca85c30}{\-Unit\-\_\-\-Does\-\_\-\-Not\-\_\-\-Exist} (0)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a02a5b64e00e1e78913495e3efa7a298a}{\-Unit\-\_\-\-Not\-\_\-\-Visible} (1)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a6d30d156939eed81dc907f687f2c89ca}{\-Unit\-\_\-\-Not\-\_\-\-Owned} (2)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a121d71485b1477d6ccf384dcb54a6931}{\-Unit\-\_\-\-Busy} (3)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aeb4c174ac73e26eced6ea85cbf34a74b}{\-Incompatible\-\_\-\-Unit\-Type} (4)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a15edcd1e546ed47598a8bb806c37c422}{\-Incompatible\-\_\-\-Tech\-Type} (5)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a20125a8c3f7b46a494f82c5b3d5cf4db}{\-Incompatible\-\_\-\-State} (6)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_abd1d2e674add0fe62ff981a31c2683a2}{\-Already\-\_\-\-Researched} (7)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a7604a5e1f2d40d37c00eced7cc751db9}{\-Fully\-\_\-\-Upgraded} (8)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a9810726c39ed10cf34f5e2accf07651c}{\-Currently\-\_\-\-Researching} (9)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a2b61a66452c6eedadb9324b8bb291474}{\-Currently\-\_\-\-Upgrading} (10)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a5cc7859dfb875074e3af9f0a2884a2a6}{\-Insufficient\-\_\-\-Minerals} (11)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a96523ee1df77b3a8265a6f055af8c6cd}{\-Insufficient\-\_\-\-Gas} (12)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a736aa683fbb8ce1a723f262338bdd888}{\-Insufficient\-\_\-\-Supply} (13)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_acadb17f9ab3ff0608bd0f339d4572b26}{\-Insufficient\-\_\-\-Energy} (14)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_af2dde515e0e88ae2ec31227efb0d8f0e}{\-Insufficient\-\_\-\-Tech} (15)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a2df6500f177884849cec39caaf800b71}{\-Insufficient\-\_\-\-Ammo} (16)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a85321d43738ef5e243d0e7e85d8b481e}{\-Insufficient\-\_\-\-Space} (17)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aa70439e3918ae2fb05a5c44c678c8910}{\-Invalid\-\_\-\-Tile\-\_\-\-Position} (18)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aad9f30a6824837cdec11e0a0f2e543cd}{\-Unbuildable\-\_\-\-Location} (19)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a9ad9b93aa61438c2a861725770f27e1b}{\-Unreachable\-\_\-\-Location} (20)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a31c3c28685c335ae8468bc47a1d96302}{\-Out\-\_\-\-Of\-\_\-\-Range} (21)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ab01482dd0034d07529f70d5ea2077cde}{\-Unable\-\_\-\-To\-\_\-\-Hit} (22)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a0b6859e5d627353303d7b5c9286f8f4e}{\-Access\-\_\-\-Denied} (23)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_aab1174e22177ddcef7e22dc23eab0071}{\-File\-\_\-\-Not\-\_\-\-Found} (24)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a8bdf8c148bda48b92c954b285db6dff6}{\-Invalid\-\_\-\-Parameter} (25)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_a278e2125b7537e5bc1c07fb50a2e599b}{\-None} (26)
\item 
const \hyperlink{classBWAPI_1_1Error}{\-Error} \hyperlink{namespaceBWAPI_1_1Errors_ad757ea6994fa1e9050085af0e126078e}{\-Unknown} (27)
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{namespaceBWAPI_1_1Errors_a1ad58c07763db21566d7acd5306eff9f}{\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}const std\-::set$<$ {\bf \-Error} $>$ \& {\bf \-B\-W\-A\-P\-I\-::\-Errors\-::all\-Errors} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{namespaceBWAPI_1_1Errors_a1ad58c07763db21566d7acd5306eff9f}
\-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_aad9f30a6824837cdec11e0a0f2e543cd}{\-Errors\-::\-Unbuildable\-\_\-\-Location}?. 

\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=330pt]{namespaceBWAPI_1_1Errors_a1dfec2c419899a18e2fd53dba07b873e_cgraph}
\end{center}
\end{figure}


\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}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{namespaceBWAPI_1_1Errors_a53ed41057d772a7fa7b2e27ecf3e1a38_icgraph}
\end{center}
\end{figure}




\subsection{\-Variable \-Documentation}
\hypertarget{namespaceBWAPI_1_1Errors_a0b6859e5d627353303d7b5c9286f8f4e}{\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_a0b6859e5d627353303d7b5c9286f8f4e}
\-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_abd1d2e674add0fe62ff981a31c2683a2}{\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_abd1d2e674add0fe62ff981a31c2683a2}
\-Returned if you try to research something that is already researched. \hypertarget{namespaceBWAPI_1_1Errors_a9810726c39ed10cf34f5e2accf07651c}{\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_a9810726c39ed10cf34f5e2accf07651c}
\-Returned if you try to research something that is already being researched. \hypertarget{namespaceBWAPI_1_1Errors_a2b61a66452c6eedadb9324b8bb291474}{\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_a2b61a66452c6eedadb9324b8bb291474}
\-Returned if you try to upgrade something that is already being upgraded. \hypertarget{namespaceBWAPI_1_1Errors_aab1174e22177ddcef7e22dc23eab0071}{\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_aab1174e22177ddcef7e22dc23eab0071}
\-Used when a file can't be found. \hypertarget{namespaceBWAPI_1_1Errors_a7604a5e1f2d40d37c00eced7cc751db9}{\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_a7604a5e1f2d40d37c00eced7cc751db9}
\-Returned if you try to upgrade something that is already fully upgraded. \hypertarget{namespaceBWAPI_1_1Errors_a20125a8c3f7b46a494f82c5b3d5cf4db}{\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_a20125a8c3f7b46a494f82c5b3d5cf4db}
\-Returned if you to do something like try to cancel an upgrade when the unit isn't upgrading. \hypertarget{namespaceBWAPI_1_1Errors_a15edcd1e546ed47598a8bb806c37c422}{\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_a15edcd1e546ed47598a8bb806c37c422}
\-Returned when trying to use a tech type with the wrong \hyperlink{classBWAPI_1_1Unit_ab2c7e5f5be9ddb12a3a0b77c198d3dc0}{\-Unit\-::use\-Tech} method. \hypertarget{namespaceBWAPI_1_1Errors_aeb4c174ac73e26eced6ea85cbf34a74b}{\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_aeb4c174ac73e26eced6ea85cbf34a74b}
\-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_a2df6500f177884849cec39caaf800b71}{\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_a2df6500f177884849cec39caaf800b71}
\-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_acadb17f9ab3ff0608bd0f339d4572b26}{\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_acadb17f9ab3ff0608bd0f339d4572b26}
\-Returned if you to do something like try to order a \-Defiler to cast a \-Dark \-Swarm without enough energy. \hypertarget{namespaceBWAPI_1_1Errors_a96523ee1df77b3a8265a6f055af8c6cd}{\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_a96523ee1df77b3a8265a6f055af8c6cd}
\-Returned if you try to train or build something without enough vespene gas. \hypertarget{namespaceBWAPI_1_1Errors_a5cc7859dfb875074e3af9f0a2884a2a6}{\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_a5cc7859dfb875074e3af9f0a2884a2a6}
\-Returned if you try to train or build something without enough minerals. \hypertarget{namespaceBWAPI_1_1Errors_a85321d43738ef5e243d0e7e85d8b481e}{\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_a85321d43738ef5e243d0e7e85d8b481e}
\-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_a736aa683fbb8ce1a723f262338bdd888}{\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_a736aa683fbb8ce1a723f262338bdd888}
\-Returned if you try to train something without enough supply. \hypertarget{namespaceBWAPI_1_1Errors_af2dde515e0e88ae2ec31227efb0d8f0e}{\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_af2dde515e0e88ae2ec31227efb0d8f0e}
\-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_a8bdf8c148bda48b92c954b285db6dff6}{\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_a8bdf8c148bda48b92c954b285db6dff6}
\-Used for bad parameters, like passing \-N\-U\-L\-L or an empty string. \hypertarget{namespaceBWAPI_1_1Errors_aa70439e3918ae2fb05a5c44c678c8910}{\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_aa70439e3918ae2fb05a5c44c678c8910}
\-Returned if you try to build a barracks at \hyperlink{namespaceBWAPI_1_1TilePositions_a92fdce69b4d33982c26dbc1284f96bb0}{\-Tile\-Positions\-::\-None} or something similar \hypertarget{namespaceBWAPI_1_1Errors_a278e2125b7537e5bc1c07fb50a2e599b}{\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_a278e2125b7537e5bc1c07fb50a2e599b}
\-Used when no error has been encountered. \hypertarget{namespaceBWAPI_1_1Errors_a31c3c28685c335ae8468bc47a1d96302}{\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_a31c3c28685c335ae8468bc47a1d96302}
\-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_ab01482dd0034d07529f70d5ea2077cde}{\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_ab01482dd0034d07529f70d5ea2077cde}
\-Returned if you do something like order a \-Vulture to attack a flying unit. \hypertarget{namespaceBWAPI_1_1Errors_aad9f30a6824837cdec11e0a0f2e543cd}{\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_aad9f30a6824837cdec11e0a0f2e543cd}
\-Returned if you try to construct a building on an unbuildable location \hypertarget{namespaceBWAPI_1_1Errors_a121d71485b1477d6ccf384dcb54a6931}{\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_a121d71485b1477d6ccf384dcb54a6931}
\-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_a31be61f1abfbca8d07c596273ca85c30}{\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_a31be61f1abfbca8d07c596273ca85c30}
\-Returned if you try to order a unit or get information from a unit that no longer exists. \hypertarget{namespaceBWAPI_1_1Errors_a6d30d156939eed81dc907f687f2c89ca}{\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_a6d30d156939eed81dc907f687f2c89ca}
\-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_a02a5b64e00e1e78913495e3efa7a298a}{\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_a02a5b64e00e1e78913495e3efa7a298a}
\-Returned if you try to retrieve information about a unit that is not currently visible or is dead. \hypertarget{namespaceBWAPI_1_1Errors_ad757ea6994fa1e9050085af0e126078e}{\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_ad757ea6994fa1e9050085af0e126078e}
\-Used when the error code is not recognized or can not be determined. \hypertarget{namespaceBWAPI_1_1Errors_a9ad9b93aa61438c2a861725770f27e1b}{\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_a9ad9b93aa61438c2a861725770f27e1b}
\-Returned if you try to construct a building where the worker cannot reach based on static map data. 