X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmException.cxx;h=c1ee3086fcb29c3a90d2b79fcbc013560f14e3f5;hb=0fa193d8b312b90f2ee822e1ee87f6e2fbd1dcb5;hp=bc84810a181bc98e303d18f4e39383be899ab47c;hpb=953fdb8435f0957ba61cf9f0154ed0dc67d53981;p=gdcm.git diff --git a/src/gdcmException.cxx b/src/gdcmException.cxx index bc84810a..c1ee3086 100644 --- a/src/gdcmException.cxx +++ b/src/gdcmException.cxx @@ -2,6 +2,7 @@ #include #include +using namespace std; gdcmException::gdcmException(const string &f, const string& msg) throw() @@ -17,6 +18,7 @@ catch(...) { #endif + void gdcmException::fatal(const char *from) throw() { try { cerr << "Fatal: exception received in " << from @@ -75,7 +77,7 @@ gdcmException::operator const char *() const throw() { 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&)");