X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmException.cxx;h=53d40a73c0af6ab282e7cfbb6ad3d1ed55dddab9;hb=06e5584ba82b9878b3e544a53c9575cf363fdb8c;hp=bc84810a181bc98e303d18f4e39383be899ab47c;hpb=953fdb8435f0957ba61cf9f0154ed0dc67d53981;p=gdcm.git diff --git a/src/gdcmException.cxx b/src/gdcmException.cxx index bc84810a..53d40a73 100644 --- a/src/gdcmException.cxx +++ b/src/gdcmException.cxx @@ -1,7 +1,19 @@ +#ifdef _MSC_VER +//'identifier' : not all control paths return a value +//#pragma warning ( disable : 4715 ) +// 'identifier' : class 'type' needs to have dll-interface to be used by +// clients of class 'type2' +#pragma warning ( disable : 4251 ) +// 'identifier' : identifier was truncated to 'number' characters in the +// debug information +#pragma warning ( disable : 4786 ) +#endif //_MSC_VER + #include "gdcmException.h" #include #include +using namespace std; gdcmException::gdcmException(const string &f, const string& msg) throw() @@ -17,6 +29,7 @@ catch(...) { #endif + void gdcmException::fatal(const char *from) throw() { try { cerr << "Fatal: exception received in " << from @@ -75,7 +88,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&)");