13 #ifndef mitkException_h
14 #define mitkException_h
48 Exception(
const char *file,
unsigned int lineNumber = 0,
const char *desc =
"None",
const char *loc =
"Unknown")
49 :
itk::ExceptionObject(file, lineNumber, desc, loc)
57 void AddRethrowData(
const char *file,
unsigned int lineNumber,
const char *message);
70 void GetRethrowData(
int rethrowNumber, std::string &file,
int &line, std::string &message);
77 ss << this->GetDescription() << data;
78 this->SetDescription(ss.str());
87 ss << this->GetDescription() << data;
88 this->SetDescription(ss.str());
96 ss << this->GetDescription() << func;
97 this->SetDescription(ss.str());
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
std::vector< ReThrowData > m_RethrowData
void AddRethrowData(const char *file, unsigned int lineNumber, const char *message)
Adds rethrow data to this exception.
Exception & operator<<(std::ostream &(*func)(std::ostream &))
Definition of the bit shift operator for this class (for functions).
Exception(const char *file, unsigned int lineNumber=0, const char *desc="None", const char *loc="Unknown")
Exception & operator<<(const T &data)
Definition of the bit shift operator for this class.
int GetNumberOfRethrows()
void GetRethrowData(int rethrowNumber, std::string &file, int &line, std::string &message)
Exception & operator<<(T &data)
Definition of the bit shift operator for this class (for non const data).
Find image slices visible on a given plane.
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
std::string RethrowClassname
std::string RethrowMessage