exception to Exception mapping in catch macro
authorGiuseppe Avellino <giuseppe.avellino@datamat.it>
Tue, 19 Jul 2005 08:16:11 +0000 (08:16 +0000)
committerGiuseppe Avellino <giuseppe.avellino@datamat.it>
Tue, 19 Jul 2005 08:16:11 +0000 (08:16 +0000)
org.glite.wms-utils.exception/interface/glite/wmsutils/exception/Exception.h

index 95cdcf6..19ca7c7 100644 (file)
@@ -23,7 +23,7 @@ namespace glite {
 
 extern pthread_mutex_t METHOD_MUTEX; //  used in order to store info into a file (rather then syslog)
 #define GLITE_STACK_TRY(method_name) std::string METHOD = method_name ;  int LINE = __LINE__ ; try {
-#define GLITE_STACK_CATCH() } catch (glite::wmsutils::exception::Exception &exc){ exc.push_back ( __FILE__ , LINE,  METHOD ); throw exc ;  }
+#define GLITE_STACK_CATCH() } catch (glite::wmsutils::exception::Exception &exc){ exc.push_back ( __FILE__ , LINE,  METHOD ); throw exc ;  } catch (std::exception &ex){ glite::wmsutils::exception::Exception exc( __FILE__ , LINE,  METHOD, 0, "Standard exception: " + std::string(ex.what()) ); throw exc; }
 
 /**
  * The Exception base classe contains attributes into which are placed exception information and provides