17 #ifndef MITKEXCEPTION_H_INCLUDED
18 #define MITKEXCEPTION_H_INCLUDED
52 Exception(
const char *file,
unsigned int lineNumber = 0,
const char *desc =
"None",
const char *loc =
"Unknown")
53 :
itk::ExceptionObject(file, lineNumber, desc, loc)
58 itkTypeMacro(ClassName, SuperClassName);
61 void AddRethrowData(
const char *file,
unsigned int lineNumber,
const char *message);
64 int GetNumberOfRethrows();
74 void GetRethrowData(
int rethrowNumber, std::string &file,
int &
line, std::string &message);
81 ss << this->GetDescription() << data;
82 this->SetDescription(ss.str());
91 ss << this->GetDescription() << data;
92 this->SetDescription(ss.str());
100 ss << this->GetDescription() << func;
101 this->SetDescription(ss.str());
std::string RethrowMessage
std::string RethrowClassname
MITKCORE_EXPORT std::ostream & operator<<(std::ostream &o, DataNode::Pointer &dtn)
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).