\hypertarget{classnntrainer_1_1exception_1_1ErrorNotification}{}\doxysection{nntrainer\+::exception\+::Error\+Notification$<$ Err, $>$ Class Template Reference}
\label{classnntrainer_1_1exception_1_1ErrorNotification}\index{nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}}


Error Notification class, error is thrown when the class is destroyed. DO N\+OT use this outside as this contains throwing destructor.  




{\ttfamily \#include $<$nntrainer\+\_\+error.\+h$>$}

\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification_a0942db97e67647a004e7465b7ee62319}{Error\+Notification}} ()
\begin{DoxyCompactList}\small\item\em Construct a new Error Notification object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification_aa70389b2635ac42828472c1e13c74b02}{Error\+Notification}} (std\+::function$<$ void()$>$ cleanup\+\_\+func\+\_\+)
\begin{DoxyCompactList}\small\item\em Construct a new Error Notification object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification_a0d664e5a2f4f36f4b24abb9b3d0fc546}{$\sim$\+Error\+Notification}} () noexcept(false)
\begin{DoxyCompactList}\small\item\em Destroy the Error Notification object, Error is thrown when destroying this. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}}$<$ Err $>$ \&\& \mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification_a64a1b26d966f8d6770800a9ad0e35b06}{operator$<$$<$}} (\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}}$<$ Err $>$ \&\&out, T \&\&e)
\begin{DoxyCompactList}\small\item\em Error notification stream wrapper. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\subsubsection*{template$<$typename Err, typename std\+::enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+base\+\_\+of$<$ std\+::exception, Err $>$\+::value, Err $>$ $\ast$ = nullptr$>$\newline
class nntrainer\+::exception\+::\+Error\+Notification$<$ Err, $>$}

Error Notification class, error is thrown when the class is destroyed. DO N\+OT use this outside as this contains throwing destructor. 


\begin{DoxyTemplParams}{Template Parameters}
{\em Err} & Error type that except cstring as an argument. \\
\hline
\end{DoxyTemplParams}


Definition at line 83 of file nntrainer\+\_\+error.\+h.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classnntrainer_1_1exception_1_1ErrorNotification_a0942db97e67647a004e7465b7ee62319}\label{classnntrainer_1_1exception_1_1ErrorNotification_a0942db97e67647a004e7465b7ee62319}} 
\index{nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}!ErrorNotification@{ErrorNotification}}
\index{ErrorNotification@{ErrorNotification}!nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}}
\doxysubsubsection{\texorpdfstring{ErrorNotification()}{ErrorNotification()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily template$<$typename Err , typename std\+::enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+base\+\_\+of$<$ std\+::exception, Err $>$\+::value, Err $>$ $\ast$  = nullptr$>$ \\
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{nntrainer\+::exception\+::\+Error\+Notification}}$<$ Err, $>$\+::\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}



Construct a new Error Notification object. 



Definition at line 89 of file nntrainer\+\_\+error.\+h.

\mbox{\Hypertarget{classnntrainer_1_1exception_1_1ErrorNotification_aa70389b2635ac42828472c1e13c74b02}\label{classnntrainer_1_1exception_1_1ErrorNotification_aa70389b2635ac42828472c1e13c74b02}} 
\index{nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}!ErrorNotification@{ErrorNotification}}
\index{ErrorNotification@{ErrorNotification}!nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}}
\doxysubsubsection{\texorpdfstring{ErrorNotification()}{ErrorNotification()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily template$<$typename Err , typename std\+::enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+base\+\_\+of$<$ std\+::exception, Err $>$\+::value, Err $>$ $\ast$  = nullptr$>$ \\
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{nntrainer\+::exception\+::\+Error\+Notification}}$<$ Err, $>$\+::\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}} (\begin{DoxyParamCaption}\item[{std\+::function$<$ void()$>$}]{cleanup\+\_\+func\+\_\+ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [explicit]}}



Construct a new Error Notification object. 


\begin{DoxyParams}{Parameters}
{\em cleanup\+\_\+func\+\_\+} & clean up function \\
\hline
\end{DoxyParams}


Definition at line 96 of file nntrainer\+\_\+error.\+h.

\mbox{\Hypertarget{classnntrainer_1_1exception_1_1ErrorNotification_a0d664e5a2f4f36f4b24abb9b3d0fc546}\label{classnntrainer_1_1exception_1_1ErrorNotification_a0d664e5a2f4f36f4b24abb9b3d0fc546}} 
\index{nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}!````~ErrorNotification@{$\sim$ErrorNotification}}
\index{````~ErrorNotification@{$\sim$ErrorNotification}!nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}}
\doxysubsubsection{\texorpdfstring{$\sim$ErrorNotification()}{~ErrorNotification()}}
{\footnotesize\ttfamily template$<$typename Err , typename std\+::enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+base\+\_\+of$<$ std\+::exception, Err $>$\+::value, Err $>$ $\ast$  = nullptr$>$ \\
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{nntrainer\+::exception\+::\+Error\+Notification}}$<$ Err, $>$\+::$\sim$\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [noexcept]}}



Destroy the Error Notification object, Error is thrown when destroying this. 



Definition at line 104 of file nntrainer\+\_\+error.\+h.



\doxysubsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{classnntrainer_1_1exception_1_1ErrorNotification_a64a1b26d966f8d6770800a9ad0e35b06}\label{classnntrainer_1_1exception_1_1ErrorNotification_a64a1b26d966f8d6770800a9ad0e35b06}} 
\index{nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}!operator$<$$<$@{operator$<$$<$}}
\index{operator$<$$<$@{operator$<$$<$}!nntrainer::exception::ErrorNotification$<$ Err, $>$@{nntrainer::exception::ErrorNotification$<$ Err, $>$}}
\doxysubsubsection{\texorpdfstring{operator$<$$<$}{operator<<}}
{\footnotesize\ttfamily template$<$typename Err , typename std\+::enable\+\_\+if\+\_\+t$<$ std\+::is\+\_\+base\+\_\+of$<$ std\+::exception, Err $>$\+::value, Err $>$ $\ast$  = nullptr$>$ \\
template$<$typename T $>$ \\
\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}}$<$Err$>$\&\& operator$<$$<$ (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classnntrainer_1_1exception_1_1ErrorNotification}{Error\+Notification}}$<$ Err $>$ \&\&}]{out,  }\item[{T \&\&}]{e }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [friend]}}



Error notification stream wrapper. 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & anything that will be delegated to the move \\
\hline
\end{DoxyTemplParams}

\begin{DoxyParams}{Parameters}
{\em out} & out stream \\
\hline
{\em e} & anything to pass to the stream \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Error\+Notification$<$\+Err$>$\&\& self 
\end{DoxyReturn}


Definition at line 120 of file nntrainer\+\_\+error.\+h.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{nntrainer__error_8h}{nntrainer\+\_\+error.\+h}}\end{DoxyCompactItemize}
