\hypertarget{classHurricane_1_1Exception}{}\section{Hurricane\+:\+:Exception Class Reference}
\label{classHurricane_1_1Exception}\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}


\mbox{\hyperlink{classHurricane_1_1Exception}{Exception}} description ({\bfseries A\+PI})  




Inheritance diagram for Hurricane\+:\+:Exception\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{classHurricane_1_1Exception__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
string \mbox{\hyperlink{classHurricane_1_1Exception_a6d8036af345628567494eeab9c8e2e3a}{what}} () const
\item 
string \mbox{\hyperlink{classHurricane_1_1Exception_a19b5d24e8f02bb99625a5206638c44e8}{text\+What}} () const
\item 
string \mbox{\hyperlink{classHurricane_1_1Exception_a2582e6c3acb236e24f48cb873f64e3e9}{html\+What}} () const
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static void \mbox{\hyperlink{classHurricane_1_1Exception_a1a57fbbc4b57a014558ba31d18ec9b62}{set\+Text\+Translator}} (const Text\+Translator \&translator)
\item 
static void \mbox{\hyperlink{classHurricane_1_1Exception_a0effe808df00f4efe10925131304b8d0}{set\+Html\+Translator}} (const Text\+Translator \&translator)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\mbox{\hyperlink{classHurricane_1_1Exception}{Exception}} description ({\bfseries A\+PI}) 

\hypertarget{classHurricane_1_1Exception_secExceptionIntro}{}\subsection{Introduction}\label{classHurricane_1_1Exception_secExceptionIntro}
The \mbox{\hyperlink{classHurricane_1_1Exception}{Exception}} class groups all exceptions thrown by functions from the A\+PI. This virtual class is only useful to catch exceptions originating from one of those functions.

\begin{DoxyRemark}{Remarks}
Copy construction is disabled.
\end{DoxyRemark}
\hypertarget{classHurricane_1_1Exception_secExceptionExample}{}\subsection{Example}\label{classHurricane_1_1Exception_secExceptionExample}

\begin{DoxyCode}
\textcolor{keywordflow}{try} \{
   \textcolor{comment}{// do something}
\}
\textcolor{keywordflow}{catch} (Exception& exception) \{
   \textcolor{comment}{// Go through here if the exception comes from a function of the API}
   cerr << exception.what() << endl;
   exit(1);
\}
\textcolor{keywordflow}{catch} (...) \{
   \textcolor{comment}{// Go through here for all other system exceptions}
   cerr << Error(\textcolor{stringliteral}{"abnormal termination"}) << endl;
   \textcolor{comment}{// We use the Error() in order to get the same kind of printing}
   exit(2);
\}
\end{DoxyCode}
 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classHurricane_1_1Exception_a6d8036af345628567494eeab9c8e2e3a}\label{classHurricane_1_1Exception_a6d8036af345628567494eeab9c8e2e3a}} 
\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}!what@{what}}
\index{what@{what}!Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}
\subsubsection{\texorpdfstring{what()}{what()}}
{\footnotesize\ttfamily string Hurricane\+::\+Exception\+::what (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

{\bfseries Returns\+:} an alias over the \mbox{\hyperlink{classHurricane_1_1Exception_a19b5d24e8f02bb99625a5206638c44e8}{text\+What()}} method for convenience. 

References text\+What().

\mbox{\Hypertarget{classHurricane_1_1Exception_a19b5d24e8f02bb99625a5206638c44e8}\label{classHurricane_1_1Exception_a19b5d24e8f02bb99625a5206638c44e8}} 
\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}!text\+What@{text\+What}}
\index{text\+What@{text\+What}!Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}
\subsubsection{\texorpdfstring{text\+What()}{textWhat()}}
{\footnotesize\ttfamily string Hurricane\+::\+Exception\+::text\+What (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

{\bfseries Returns\+:} an informative (hopefully) about what has caused the exception to occurs. Formatted for an output on a tty.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{classHurricane_1_1Exception_a1a57fbbc4b57a014558ba31d18ec9b62}{set\+Text\+Translator}} 
\end{DoxySeeAlso}


Referenced by what().

\mbox{\Hypertarget{classHurricane_1_1Exception_a2582e6c3acb236e24f48cb873f64e3e9}\label{classHurricane_1_1Exception_a2582e6c3acb236e24f48cb873f64e3e9}} 
\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}!html\+What@{html\+What}}
\index{html\+What@{html\+What}!Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}
\subsubsection{\texorpdfstring{html\+What()}{htmlWhat()}}
{\footnotesize\ttfamily string Hurricane\+::\+Exception\+::html\+What (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

{\bfseries Returns\+:} an informative (hopefully) about what has caused the exception to occurs. Formatted for an output on a H\+T\+ML capable device.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{classHurricane_1_1Exception_a0effe808df00f4efe10925131304b8d0}{set\+Html\+Translator}} 
\end{DoxySeeAlso}
\mbox{\Hypertarget{classHurricane_1_1Exception_a1a57fbbc4b57a014558ba31d18ec9b62}\label{classHurricane_1_1Exception_a1a57fbbc4b57a014558ba31d18ec9b62}} 
\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}!set\+Text\+Translator@{set\+Text\+Translator}}
\index{set\+Text\+Translator@{set\+Text\+Translator}!Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}
\subsubsection{\texorpdfstring{set\+Text\+Translator()}{setTextTranslator()}}
{\footnotesize\ttfamily string Hurricane\+::\+Exception\+::set\+Text\+Translator (\begin{DoxyParamCaption}\item[{const Text\+Translator \&}]{translator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

Set the translator used for text (tty) output. \mbox{\Hypertarget{classHurricane_1_1Exception_a0effe808df00f4efe10925131304b8d0}\label{classHurricane_1_1Exception_a0effe808df00f4efe10925131304b8d0}} 
\index{Hurricane\+::\+Exception@{Hurricane\+::\+Exception}!set\+Html\+Translator@{set\+Html\+Translator}}
\index{set\+Html\+Translator@{set\+Html\+Translator}!Hurricane\+::\+Exception@{Hurricane\+::\+Exception}}
\subsubsection{\texorpdfstring{set\+Html\+Translator()}{setHtmlTranslator()}}
{\footnotesize\ttfamily string Hurricane\+::\+Exception\+::set\+Html\+Translator (\begin{DoxyParamCaption}\item[{const Text\+Translator \&}]{translator }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}

Set the translator used for H\+T\+ML (hint\+: Qt manage simple H\+T\+ML in text) output. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Exception.\+h\item 
Exception.\+dox\end{DoxyCompactItemize}
