From: Giuseppe Avellino Date: Thu, 24 Mar 2005 09:35:41 +0000 (+0000) Subject: catch stdexception added in macro X-Git-Tag: gridsite-core_R_1_1_8~58 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=9fe4caeaeb62170d7339acd4860e87456e2d9bba;p=jra1mw.git catch stdexception added in macro --- 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