ostream& operator<<(ostream &os, const gdcmException &e) {
try {
- os << "Exception " << e.getName() << " thrown: " << e.error << endl;
+ os << "Exception " << e.getName() << " thrown: " << e.getError() << endl;
}
catch(...) {
gdcmException::fatal("operator<<(ostream &, const gdcmException&)");
/// error message
string error;
- /// exception caught within exception class: print error message and die
- static void fatal(const char *from) throw();
-
- /// try to discover this (dynamic) class name
- virtual string getName() const throw();
-
public:
/**
* Builds an exception with minimal information: name of the thrower
}
+ /// exception caught within exception class: print error message and die
+ static void fatal(const char *from) throw();
+
+ /// try to discover this (dynamic) class name
+ virtual string getName() const throw();
+
friend ostream& operator<<(ostream &os, const gdcmException &e);
};