]> Creatis software - gdcm.git/blobdiff - src/gdcmException.cxx
ajout namespace std pour les string sous Windows
[gdcm.git] / src / gdcmException.cxx
index bc84810a181bc98e303d18f4e39383be899ab47c..fcf2f3149eae9b92e8bbf4c8f018063e72577a0f 100644 (file)
@@ -17,6 +17,7 @@ catch(...) {
 #endif
 
 
+
 void gdcmException::fatal(const char *from) throw() {
   try {
     cerr << "Fatal: exception received in " << from 
@@ -75,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&)");