diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-11-22 11:07:39 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-11-22 11:07:39 +0000 |
commit | a2eb352574e46a96e764a000cbb5a70c88a53a5d (patch) | |
tree | 048aca34645a859adf68bed79139447b8787e3f3 /sax | |
parent | 0c4d89d519318f931408be766457ea61c2b94753 (diff) |
#94923# provide more information than a default constructed exception can provide
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/sax_expat.cxx | 10 |
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 & ) { |