13 #ifndef MITKEXCEPTION_H_INCLUDED 14 #define MITKEXCEPTION_H_INCLUDED 48 Exception(
const char *file,
unsigned int lineNumber = 0,
const char *desc =
"None",
const char *loc =
"Unknown")
49 :
itk::ExceptionObject(file, lineNumber, desc, loc)
54 itkTypeMacro(ClassName, SuperClassName);
57 void AddRethrowData(
const char *file,
unsigned int lineNumber,
const char *message);
60 int GetNumberOfRethrows();
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());
std::string RethrowMessage
std::string RethrowClassname
Exception & operator<<(const T &data)
Definition of the bit shift operator for this class.
std::vector< ReThrowData > m_RethrowData
DataCollection - Class to facilitate loading/accessing structured data.
Exception(const char *file, unsigned int lineNumber=0, const char *desc="None", const char *loc="Unknown")
Exception & operator<<(T &data)
Definition of the bit shift operator for this class (for non const data).
An object of this class represents an exception of MITK. Please don't instantiate exceptions manually...
Exception & operator<<(std::ostream &(*func)(std::ostream &))
Definition of the bit shift operator for this class (for functions).
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)