\doxysection{Communication\+Exception.\+h}
\hypertarget{a00356_source}{}\label{a00356_source}\index{CommunicationException.h@{CommunicationException.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ "{}TranscribableException.h"{}}}
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#ifdef\ STARFLEETTOOLBOX\_EXPORTS}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#define\ COMMEXCEPT\ \_\_declspec(dllexport)}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#define\ COMMEXCEPT\ \_\_declspec(dllimport)}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00009\ \textcolor{keyword}{using\ namespace\ }std;}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00014\ \textcolor{keyword}{class\ }COMMEXCEPT\ \mbox{\hyperlink{a00844}{CommunicationException}}\ :\ exception,\ \textcolor{keyword}{public}\ TranscribableException}
\DoxyCodeLine{00015\ \{}
\DoxyCodeLine{00016\ \textcolor{keyword}{public}:\ \ \ \ }
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keyword}{explicit}\ \mbox{\hyperlink{a00844_a3771b12c9ba617bc9a2b584ea688271c}{CommunicationException}}(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ message,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ translateCode)}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ :\ \_msg(message)\ \{}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ SetTranslateCode(\textcolor{keywordtype}{string}(translateCode));}
\DoxyCodeLine{00024\ \ \ \ \ \}}
\DoxyCodeLine{00030\ \ \ \ \ \textcolor{keyword}{explicit}\ \mbox{\hyperlink{a00844}{CommunicationException}}(\textcolor{keywordtype}{int}\ code,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{string}\&\ message,\ \textcolor{keywordtype}{string}\ translateCode);}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{keyword}{explicit}\ \mbox{\hyperlink{a00844_ae5f5cd4e017eff92c6ca981e0e7c32b9}{CommunicationException}}(\textcolor{keyword}{const}\ \textcolor{keywordtype}{string}\&\ message,\ \textcolor{keywordtype}{string}\ translateCode)}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ :\ \_msg(message)\ \{}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ SetTranslateCode(\textcolor{keywordtype}{string}(translateCode));}
\DoxyCodeLine{00039\ \ \ \ \ \}}
\DoxyCodeLine{00040\ \ \ \ \ }
\DoxyCodeLine{00045\ \ \ \ \ \textcolor{keyword}{virtual}\ \mbox{\hyperlink{a00844_a37d171014e41fe5e02495f2b77e840e1}{\string~CommunicationException}}()\ noexcept\ \{\}}
\DoxyCodeLine{00046\ }
\DoxyCodeLine{00051\ \ \ \ \ \textcolor{keyword}{virtual}\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{a00844_a090028821985d4d3aa97c9d1c9e9df04}{what}}()\ const\ noexcept\ \{}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_msg.c\_str();}
\DoxyCodeLine{00053\ \ \ \ \ \}}
\DoxyCodeLine{00054\ \ \ \ \ }
\DoxyCodeLine{00055\ \ \ \ \ \textcolor{keywordtype}{int}\ GetErrorCode();}
\DoxyCodeLine{00056\ \textcolor{keyword}{protected}:}
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{a00844_ad1e2626500364c97599835d0abd921d7}{\_msg}};}
\DoxyCodeLine{00058\ \ \ \ \ \textcolor{keywordtype}{int}\ \_code\ =\ -\/1;}
\DoxyCodeLine{00059\ \};}
\DoxyCodeLine{00060\ }

\end{DoxyCode}
