\hypertarget{classBWAPI_1_1Error}{\section{\-B\-W\-A\-P\-I\-:\-:\-Error \-Class \-Reference}
\label{classBWAPI_1_1Error}\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}}
}


{\ttfamily \#include $<$\-Error.\-h$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classBWAPI_1_1Error_a8d6ea68786257fa4ed3c46807e14ef30}{\-Error} ()
\item 
\hyperlink{classBWAPI_1_1Error_a09e77519ed788b5a311fee2375b59294}{\-Error} (int id)
\item 
\hyperlink{classBWAPI_1_1Error_a21951d8040ac1eac56e72c2d405303a4}{\-Error} (const \hyperlink{classBWAPI_1_1Error}{\-Error} \&other)
\item 
\hyperlink{classBWAPI_1_1Error}{\-Error} \& \hyperlink{classBWAPI_1_1Error_a819335f9d2eabefa0d7da359fa187a83}{operator=} (const \hyperlink{classBWAPI_1_1Error}{\-Error} \&other)
\item 
\hyperlink{classBWAPI_1_1Error_a28b37374350a6ea3b3ac48394fe54d4b}{operator int} () const 
\item 
int \hyperlink{classBWAPI_1_1Error_a124ed023caaea3db19cfd4ea42ac023d}{get\-I\-D} () const 
\item 
std\-::string \hyperlink{classBWAPI_1_1Error_a9e748120e40d33a3148598ba57a1e14b}{to\-String} () const 
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Functions in \hyperlink{namespaceBWAPI}{\-B\-W\-A\-P\-I} may set an error code. \-To retrieve the error code, call \hyperlink{classBWAPI_1_1Game_aa14c105116d29b94c2afb25c1291fe33}{\-Game\-::get\-Last\-Error}. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classBWAPI_1_1Error_a8d6ea68786257fa4ed3c46807e14ef30}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!\-Error@{\-Error}}
\index{\-Error@{\-Error}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{\-Error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Error\-::\-Error} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Error_a8d6ea68786257fa4ed3c46807e14ef30}
\hypertarget{classBWAPI_1_1Error_a09e77519ed788b5a311fee2375b59294}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!\-Error@{\-Error}}
\index{\-Error@{\-Error}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{\-Error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Error\-::\-Error} (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Error_a09e77519ed788b5a311fee2375b59294}
\hypertarget{classBWAPI_1_1Error_a21951d8040ac1eac56e72c2d405303a4}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!\-Error@{\-Error}}
\index{\-Error@{\-Error}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{\-Error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-B\-W\-A\-P\-I\-::\-Error\-::\-Error} (
\begin{DoxyParamCaption}
\item[{const {\bf \-Error} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Error_a21951d8040ac1eac56e72c2d405303a4}


\subsection{\-Member \-Function \-Documentation}
\hypertarget{classBWAPI_1_1Error_a124ed023caaea3db19cfd4ea42ac023d}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!get\-I\-D@{get\-I\-D}}
\index{get\-I\-D@{get\-I\-D}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{get\-I\-D}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-B\-W\-A\-P\-I\-::\-Error\-::get\-I\-D} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Error_a124ed023caaea3db19cfd4ea42ac023d}
\-Returns a unique \-I\-D for this error. \hypertarget{classBWAPI_1_1Error_a28b37374350a6ea3b3ac48394fe54d4b}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!operator int@{operator int}}
\index{operator int@{operator int}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{operator int}]{\setlength{\rightskip}{0pt plus 5cm}\-B\-W\-A\-P\-I\-::\-Error\-::operator int (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Error_a28b37374350a6ea3b3ac48394fe54d4b}
\hypertarget{classBWAPI_1_1Error_a819335f9d2eabefa0d7da359fa187a83}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!operator=@{operator=}}
\index{operator=@{operator=}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-Error}\& \-B\-W\-A\-P\-I\-::\-Error\-::operator= (
\begin{DoxyParamCaption}
\item[{const {\bf \-Error} \&}]{other}
\end{DoxyParamCaption}
)}}\label{classBWAPI_1_1Error_a819335f9d2eabefa0d7da359fa187a83}
\hypertarget{classBWAPI_1_1Error_a9e748120e40d33a3148598ba57a1e14b}{\index{\-B\-W\-A\-P\-I\-::\-Error@{\-B\-W\-A\-P\-I\-::\-Error}!to\-String@{to\-String}}
\index{to\-String@{to\-String}!BWAPI::Error@{\-B\-W\-A\-P\-I\-::\-Error}}
\subsubsection[{to\-String}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string {\bf \-B\-W\-A\-P\-I\-::\-Error\-::to\-String} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classBWAPI_1_1Error_a9e748120e40d33a3148598ba57a1e14b}
\-Returns the name of the error. \-For example \hyperlink{namespaceBWAPI_1_1Errors_a02487572128a3c4fe7b143a3b65fba63}{\-Errors\-::\-Insufficient\-\_\-\-Minerals}?.\hyperlink{classBWAPI_1_1Error_a9e748120e40d33a3148598ba57a1e14b}{to\-String()} will return a std\-::string object containing \char`\"{}\-Insufficient Minerals\char`\"{}. 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
\-Aiur/include/\-B\-W\-A\-P\-I/\hyperlink{Error_8h}{\-Error.\-h}\end{DoxyCompactItemize}
