Added SAX exception handler.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 16 Sep 2002 19:59:58 +0000 (19:59 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 16 Sep 2002 19:59:58 +0000 (19:59 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@79 cb58f699-b61c-0410-a6fe-9272a202ed29

posttest/posttest.cpp

index 2bdfd46..7424824 100644 (file)
@@ -154,6 +154,10 @@ int main(int argc,char* argv[])
     {
         cerr << "caught a SAML exception: " << e << endl;
     }
+    catch(SAXException& e)
+    {
+        cerr << "caught a SAX exception: "; xmlout(cerr,e.getMessage()); cerr << endl;
+    }
     catch(XMLException& e)
     {
         cerr << "caught an XML exception: "; xmlout(cerr,e.getMessage()); cerr << endl;