You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2007/09/22 07:19:55 UTC
svn commit: r578370 - /xml/security/trunk/c/src/framework/XSECError.hpp
Author: scantor
Date: Fri Sep 21 22:19:55 2007
New Revision: 578370
URL: http://svn.apache.org/viewvc?rev=578370&view=rev
Log:
Stop catching hardware traps.
Stop masking internal crypto errors.
Modified:
xml/security/trunk/c/src/framework/XSECError.hpp
Modified: xml/security/trunk/c/src/framework/XSECError.hpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/framework/XSECError.hpp?rev=578370&r1=578369&r2=578370&view=diff
==============================================================================
--- xml/security/trunk/c/src/framework/XSECError.hpp (original)
+++ xml/security/trunk/c/src/framework/XSECError.hpp Fri Sep 21 22:19:55 2007
@@ -27,6 +27,8 @@
#include <xsec/framework/XSECDefs.hpp>
#include <xsec/framework/XSECException.hpp>
+#include <xsec/enc/XSECCryptoException.hpp>
+#include <exception>
/**
* @defgroup pubsig Main Signature API
@@ -54,11 +56,11 @@
throw XSECException (XSECException::MemoryAllocationFail); \
}\
} \
- catch (XSECException &e) \
+ catch (XSECCryptoException &e) \
{\
throw XSECException (XSECException::InternalError, e.getMsg()); \
} \
- catch (...) { \
+ catch (std::bad_alloc&) { \
throw XSECException (XSECException::MemoryAllocationFail); \
}
@@ -70,11 +72,12 @@
throw XSECException (XSECException::MemoryAllocationFail); \
} \
} \
- catch (XSECException &e) \
+ catch (XSECCryptoException &e) \
{\
throw XSECException (XSECException::InternalError, e.getMsg()); \
} \
- catch (...) { \
+ catch (std::bad_alloc&) { \
throw XSECException (XSECException::MemoryAllocationFail); \
}
+
#endif