\hypertarget{classXorpReasonedException}{
\section{XorpReasonedException Class Reference}
\label{classXorpReasonedException}\index{XorpReasonedException@{XorpReasonedException}}
}


A base class for XORP exceptions that keeps \hyperlink{protocolthe-p}{the} reason for exception.  




{\ttfamily \#include $<$exceptions.hh$>$}

Inheritance diagram for XorpReasonedException:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12.000000cm]{classXorpReasonedException}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classXorpReasonedException_abe080cdba97d0fc6a562d25ce4b2dc41}{XorpReasonedException} (const char $\ast$init\_\-what, const char $\ast$file, size\_\-t line, const string \&init\_\-why)
\begin{DoxyCompactList}\small\item\em Constructor for a given type for exception, file name, file line number, and a reason. \item\end{DoxyCompactList}\item 
const string \hyperlink{classXorpReasonedException_ae17a86a267e2e62b949b433582f10f7a}{why} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} reason for throwing an exception. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classXorpReasonedException_ae16969ea1b4aa3781e1438b6396d0e57}{
string {\bfseries \_\-why}}
\label{classXorpReasonedException_ae16969ea1b4aa3781e1438b6396d0e57}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A base class for XORP exceptions that keeps \hyperlink{protocolthe-p}{the} reason for exception. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classXorpReasonedException_abe080cdba97d0fc6a562d25ce4b2dc41}{
\index{XorpReasonedException@{XorpReasonedException}!XorpReasonedException@{XorpReasonedException}}
\index{XorpReasonedException@{XorpReasonedException}!XorpReasonedException@{XorpReasonedException}}
\subsubsection[{XorpReasonedException}]{\setlength{\rightskip}{0pt plus 5cm}XorpReasonedException::XorpReasonedException (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{init\_\-what, }
\item[{const char $\ast$}]{file, }
\item[{size\_\-t}]{line, }
\item[{const string \&}]{init\_\-why}
\end{DoxyParamCaption}
)}}
\label{classXorpReasonedException_abe080cdba97d0fc6a562d25ce4b2dc41}


Constructor for a given type for exception, file name, file line number, and a reason. 


\begin{DoxyParams}{Parameters}
{\em init\_\-what} & \hyperlink{protocolthe-p}{the} type of exception. \\
\hline
{\em file} & \hyperlink{protocolthe-p}{the} file name where \hyperlink{protocolthe-p}{the} exception was thrown. \\
\hline
{\em line} & \hyperlink{protocolthe-p}{the} line in file where \hyperlink{protocolthe-p}{the} exception was thrown. \\
\hline
{\em init\_\-why} & \hyperlink{protocolthe-p}{the} reason for \hyperlink{protocolthe-p}{the} exception that was thrown. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classXorpReasonedException_ae17a86a267e2e62b949b433582f10f7a}{
\index{XorpReasonedException@{XorpReasonedException}!why@{why}}
\index{why@{why}!XorpReasonedException@{XorpReasonedException}}
\subsubsection[{why}]{\setlength{\rightskip}{0pt plus 5cm}const string XorpReasonedException::why (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classXorpReasonedException_ae17a86a267e2e62b949b433582f10f7a}


Get \hyperlink{protocolthe-p}{the} reason for throwing an exception. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} string with \hyperlink{protocolthe-p}{the} reason for throwing an exception. 
\end{DoxyReturn}


Reimplemented from \hyperlink{classXorpException_a96ff39a6f9c07bd7bca9000b715adf02}{XorpException}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/exceptions.hh\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/exceptions.cc\end{DoxyCompactItemize}
