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)
54 itkTypeMacro(
Exception, itk::ExceptionObject);
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());