summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2001-11-22 11:07:39 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2001-11-22 11:07:39 +0000
commita2eb352574e46a96e764a000cbb5a70c88a53a5d (patch)
tree048aca34645a859adf68bed79139447b8787e3f3 /sax/source
parent0c4d89d519318f931408be766457ea61c2b94753 (diff)
#94923# provide more information than a default constructed exception can provide
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/expatwrap/sax_expat.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 7f5d3c32db88..d741847bd1d4 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sax_expat.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: hr $ $Date: 2001-11-21 23:22:34 $
+ * last change: $Author: hr $ $Date: 2001-11-22 12:07:39 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -478,11 +478,13 @@ void SaxExpatParser::parseStream( const InputSource& structSource)
m_pImpl->rDocumentHandler->endDocument();
}
}
- catch( SAXParseException & )
+ catch( SAXParseException &e )
{
m_pImpl->popEntity();
XML_ParserFree( entity.pParser );
- throw SAXException();
+ Any aAny;
+ aAny <<= e;
+ throw SAXException( e.Message, e.Context, aAny );
}
catch( SAXException & )
{