From a76c87a014480149a0fc8524124a596083322600 Mon Sep 17 00:00:00 2001 From: regrain Date: Wed, 19 Feb 2003 17:08:19 +0000 Subject: [PATCH] * python/setup.py : bug fix concerning install under windows ExtraPath reused :-P -- BeNours --- src/gdcmException.cxx | 2 +- src/gdcmException.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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); }; -- 2.48.1