diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-11-21 22:22:34 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2001-11-21 22:22:34 +0000 |
commit | a2905c387d8337bb343031471c9c03d8325aff1c (patch) | |
tree | 0672cc01f4e55b7ac9afbb28b70f8ab252780f43 /sax | |
parent | af25cedd3c1796a7723c685df8fdeb6d02d7cdcf (diff) |
#94923# be careful about rethrowing derived exceptions
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/expatwrap/sax_expat.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx index 2f1555008fd6..7f5d3c32db88 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.6 $ + * $Revision: 1.7 $ * - * last change: $Author: dbo $ $Date: 2001-10-11 14:14:30 $ + * last change: $Author: hr $ $Date: 2001-11-21 23:22:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -478,18 +478,17 @@ void SaxExpatParser::parseStream( const InputSource& structSource) m_pImpl->rDocumentHandler->endDocument(); } } - -// catch( SAXParseException & ) -// { -// m_pImpl->popEntity(); -// XML_ParserFree( entity.pParser ); -// throw; -// } + catch( SAXParseException & ) + { + m_pImpl->popEntity(); + XML_ParserFree( entity.pParser ); + throw SAXException(); + } catch( SAXException & ) { m_pImpl->popEntity(); XML_ParserFree( entity.pParser ); - throw; + throw; } catch( IOException & ) { |