From 9fe4caeaeb62170d7339acd4860e87456e2d9bba Mon Sep 17 00:00:00 2001 From: Giuseppe Avellino Date: Thu, 24 Mar 2005 09:35:41 +0000 Subject: [PATCH] catch stdexception added in macro --- .../interface/glite/wmsutils/exception/Exception.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.wms-utils.exception/interface/glite/wmsutils/exception/Exception.h b/org.glite.wms-utils.exception/interface/glite/wmsutils/exception/Exception.h index 95cdcf6..19ca7c7 100644 --- a/org.glite.wms-utils.exception/interface/glite/wmsutils/exception/Exception.h +++ b/org.glite.wms-utils.exception/interface/glite/wmsutils/exception/Exception.h @@ -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 -- 1.8.2.3