\name{GenericException}
\alias{GenericException}
\title{GenericException}
\Rdversion{1.1}
\docType{class}
\description{
The base SimpleITK exception class.
GenericException}
\details{GenericException}
%C++ includes: sitkExceptionObject.h
\section{Methods}{
\describe{
\item{ GenericException() noexcept:}{
Default constructor. Needed to ensure the exception object can be
copied.
}
\item{ GenericException(const char *file, unsigned int lineNumber) noexcept:}{
Constructor. Needed to ensure the exception object can be copied.
}
\item{ GenericException(const GenericException &e) noexcept:}{}
\item{ GenericException(const std::string &file, unsigned int lineNumber) noexcept:}{
Constructor. Needed to ensure the exception object can be copied.
}
\item{ GenericException(const std::string &file, unsigned int lineNumber, const std::string &desc) noexcept:}{
Constructor. Needed to ensure the exception object can be copied.
}
\item{const char * GetDescription() const:}{}
\item{const char * GetFile() const:}{
What file did the exception occur in?
}
\item{unsigned int GetLine() const:}{
What line did the exception occur in?
}
\item{const char * GetLocation() const:}{}
\item{const char * GetNameOfClass() const:}{}
\item{std::string ToString() const:}{
Return a description of the error
}
\item{const char * what() const noexcept override:}{}
\item{ ~GenericException() noexcept override:}{
Virtual destructor needed for subclasses. Has to have empty noexcept.
}
}
}
