-class GDCM_EXPORT gdcmException : public exception {
- protected:
- /// error message
- string from;
- /// 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
- * method and error message
- *
- * @param from name of the thrower
- * @param error error description string
- */
- explicit gdcmException(const string &from, const string &error = "")
+class GDCM_EXPORT gdcmException : public std::exception {
+public:
+ /*
+ * Builds an exception with minimal information: name of the thrower
+ * method and error message
+ *
+ * @param from name of the thrower
+ * @param error error description string
+ */
+ explicit gdcmException(const std::string &from, const std::string &error = "")