You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2004/02/04 02:23:29 UTC
cvs commit: xml-xalan/c/samples/SimpleXPathAPI SimpleXPathAPI.cpp
dbertoni 2004/02/03 17:23:29
Modified: c/samples/SimpleXPathAPI SimpleXPathAPI.cpp
Log:
Added more specific exception handling.
Revision Changes Path
1.18 +16 -2 xml-xalan/c/samples/SimpleXPathAPI/SimpleXPathAPI.cpp
Index: SimpleXPathAPI.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/samples/SimpleXPathAPI/SimpleXPathAPI.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- SimpleXPathAPI.cpp 6 Jan 2004 02:41:27 -0000 1.17
+++ SimpleXPathAPI.cpp 4 Feb 2004 01:23:29 -0000 1.18
@@ -75,6 +75,10 @@
+#include <xalanc/PlatformSupport/XSLException.hpp>
+
+
+
#include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>
@@ -109,7 +113,9 @@
}
else
{
- try
+ XALAN_USING_XALAN(XSLException)
+
+ try
{
XALAN_USING_XERCES(XMLPlatformUtils)
@@ -198,9 +204,17 @@
XMLPlatformUtils::Terminate();
}
+ catch(const XSLException& theException)
+ {
+ cerr << "XSL exception: "
+ << theException.getMessage()
+ << endl;
+
+ theResult = -1;
+ }
catch(...)
{
- cerr << "Exception caught!" << endl;
+ cerr << "Generic exception caught!" << endl;
theResult = -1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org