You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by mi...@apache.org on 2005/08/18 14:05:32 UTC
cvs commit: xml-security/c/src/framework XSECError.hpp
milan 2005/08/18 05:05:32
Modified: c/src/framework XSECError.hpp
Log:
Exceptions thrown in ctors were threated as "out of memory" exceptions.
Revision Changes Path
1.11 +9 -1 xml-security/c/src/framework/XSECError.hpp
Index: XSECError.hpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/framework/XSECError.hpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- XSECError.hpp 26 Feb 2005 10:12:31 -0000 1.10
+++ XSECError.hpp 18 Aug 2005 12:05:32 -0000 1.11
@@ -54,6 +54,10 @@
throw XSECException (XSECException::MemoryAllocationFail); \
}
} \
+ catch (XSECException &e) \
+ {\
+ throw XSECException (XSECException::InternalError, e.getMsg()); \
+ } \
catch (...) { \
throw XSECException (XSECException::MemoryAllocationFail); \
}
@@ -66,6 +70,10 @@
throw XSECException (XSECException::MemoryAllocationFail); \
} \
} \
+ catch (XSECException &e) \
+ {\
+ throw XSECException (XSECException::InternalError, e.getMsg()); \
+ } \
catch (...) { \
throw XSECException (XSECException::MemoryAllocationFail); \
}