From: regrain Date: Wed, 19 Feb 2003 17:08:19 +0000 (+0000) Subject: * python/setup.py : bug fix concerning install under windows X-Git-Tag: April2003~40 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a76c87a014480149a0fc8524124a596083322600;p=gdcm.git * python/setup.py : bug fix concerning install under windows ExtraPath reused :-P -- BeNours --- diff --git a/src/gdcmException.cxx b/src/gdcmException.cxx index 9ad0f4cf..fcf2f314 100644 --- a/src/gdcmException.cxx +++ b/src/gdcmException.cxx @@ -76,7 +76,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&)"); diff --git a/src/gdcmException.h b/src/gdcmException.h index 0938733b..3c30f94b 100644 --- a/src/gdcmException.h +++ b/src/gdcmException.h @@ -36,12 +36,6 @@ class GDCM_EXPORT gdcmException : public exception { /// 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 @@ -74,6 +68,12 @@ class GDCM_EXPORT gdcmException : public exception { } + /// 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); };