\hypertarget{classXorpException}{
\section{XorpException Class Reference}
\label{classXorpException}\index{XorpException@{XorpException}}
}


A base class for XORP exceptions.  




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

Inheritance diagram for XorpException:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=9.000000cm]{classXorpException}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classXorpException_a23b835f7c761371bde25aff0838d3e01}{XorpException} (const char $\ast$init\_\-what, const char $\ast$file, size\_\-t line)
\begin{DoxyCompactList}\small\item\em Constructor for a given type for exception, file name, and file line number. \item\end{DoxyCompactList}\item 
\hypertarget{classXorpException_a3ca1773f4bdac7bf138d70911c4afc31}{
virtual \hyperlink{classXorpException_a3ca1773f4bdac7bf138d70911c4afc31}{$\sim$XorpException} ()}
\label{classXorpException_a3ca1773f4bdac7bf138d70911c4afc31}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
const string \& \hyperlink{classXorpException_a3c637a71a32f872e587747db967172eb}{what} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} type of this exception. \item\end{DoxyCompactList}\item 
const string \hyperlink{classXorpException_a0eb457e2728112ec929c999088e4febd}{where} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} location for throwing an exception. \item\end{DoxyCompactList}\item 
virtual const string \hyperlink{classXorpException_a96ff39a6f9c07bd7bca9000b715adf02}{why} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} reason for throwing an exception. \item\end{DoxyCompactList}\item 
string \hyperlink{classXorpException_a621ddb2cfa610175ad185327bbe3c63d}{str} () const 
\begin{DoxyCompactList}\small\item\em Convert this exception from binary form to presentation format. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classXorpException_a72ce0b97a629be429c87914d5493ef4f}{
string {\bfseries \_\-what}}
\label{classXorpException_a72ce0b97a629be429c87914d5493ef4f}

\item 
\hypertarget{classXorpException_a9ecce5acded3fcb10d397d692e0991b8}{
const char $\ast$ {\bfseries \_\-file}}
\label{classXorpException_a9ecce5acded3fcb10d397d692e0991b8}

\item 
\hypertarget{classXorpException_a3aa27ff8e90224ecf90cedf7236503ad}{
size\_\-t {\bfseries \_\-line}}
\label{classXorpException_a3aa27ff8e90224ecf90cedf7236503ad}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
A base class for XORP exceptions. 

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


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


\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
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classXorpException_a621ddb2cfa610175ad185327bbe3c63d}{
\index{XorpException@{XorpException}!str@{str}}
\index{str@{str}!XorpException@{XorpException}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string XorpException::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classXorpException_a621ddb2cfa610175ad185327bbe3c63d}


Convert this exception from binary form to presentation format. 

\begin{DoxyReturn}{Returns}
C++ string with \hyperlink{protocolthe-p}{the} human-\/readable ASCII representation of \hyperlink{protocolthe-p}{the} exception. 
\end{DoxyReturn}
\hypertarget{classXorpException_a3c637a71a32f872e587747db967172eb}{
\index{XorpException@{XorpException}!what@{what}}
\index{what@{what}!XorpException@{XorpException}}
\subsubsection[{what}]{\setlength{\rightskip}{0pt plus 5cm}const string\& XorpException::what (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classXorpException_a3c637a71a32f872e587747db967172eb}


Get \hyperlink{protocolthe-p}{the} type of this exception. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} string with \hyperlink{protocolthe-p}{the} type of this exception. 
\end{DoxyReturn}
\hypertarget{classXorpException_a0eb457e2728112ec929c999088e4febd}{
\index{XorpException@{XorpException}!where@{where}}
\index{where@{where}!XorpException@{XorpException}}
\subsubsection[{where}]{\setlength{\rightskip}{0pt plus 5cm}const string XorpException::where (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classXorpException_a0eb457e2728112ec929c999088e4febd}


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

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} string with \hyperlink{protocolthe-p}{the} location (file name and file line number) for throwing an exception. 
\end{DoxyReturn}
\hypertarget{classXorpException_a96ff39a6f9c07bd7bca9000b715adf02}{
\index{XorpException@{XorpException}!why@{why}}
\index{why@{why}!XorpException@{XorpException}}
\subsubsection[{why}]{\setlength{\rightskip}{0pt plus 5cm}const string XorpException::why (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classXorpException_a96ff39a6f9c07bd7bca9000b715adf02}


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 in \hyperlink{structXrlArgs_1_1BadArgs_a9573641908888a70c3f0fc3d9195a2a5}{XrlArgs::BadArgs}, \hyperlink{structXrlAtom_1_1NoData_a095f74a74bd4330579e677746c6a5894}{XrlAtom::NoData}, \hyperlink{structXrlAtom_1_1WrongType_a97a7e08a958b9569e19f50e029ca480c}{XrlAtom::WrongType}, \hyperlink{structXrlAtom_1_1BadName_a7e30dcbb10eb2a0e8224a76b1e37ed73}{XrlAtom::BadName}, \hyperlink{classXorpReasonedException_ae17a86a267e2e62b949b433582f10f7a}{XorpReasonedException}, \hyperlink{classInvalidFamily_a3235171faf4dcb0610c185d91831f03a}{InvalidFamily}, and \hyperlink{classInvalidNetmaskLength_a30c3d76a353dd789c41e6aeb3e62247e}{InvalidNetmaskLength}.



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}
