diff options
author | Jörg Budischewski <jbu@openoffice.org> | 2001-03-01 11:46:53 +0000 |
---|---|---|
committer | Jörg Budischewski <jbu@openoffice.org> | 2001-03-01 11:46:53 +0000 |
commit | 5495a63a63a5a0879ef1ac2a5a79ad376cb1c85a (patch) | |
tree | 3fa596074825b852f64cdcef29033ca94b4323d6 /sax/source | |
parent | 5fa86ed7c1248cc92fe274466d9d812bafea48df (diff) |
io exception now caught during endDocument
Diffstat (limited to 'sax/source')
-rw-r--r-- | sax/source/expatwrap/saxwriter.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sax/source/expatwrap/saxwriter.cxx b/sax/source/expatwrap/saxwriter.cxx index b2ddf06038b1..7465250b5d5b 100644 --- a/sax/source/expatwrap/saxwriter.cxx +++ b/sax/source/expatwrap/saxwriter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: saxwriter.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jbu $ $Date: 2001-01-04 15:57:55 $ + * last change: $Author: jbu $ $Date: 2001-03-01 12:46:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -618,7 +618,19 @@ void SAXWriter::endDocument(void) throw(SAXException, RuntimeE OUString::createFromAscii( "unexpected end of document" ), Reference< XInterface >() , Any() ); } - m_out->closeOutput(); + try + { + m_out->closeOutput(); + } + catch( IOException & e ) + { + Any a; + a <<= e; + throw SAXException( + OUString::createFromAscii( "IO exception during closing the IO Stream" ), + Reference< XInterface > (), + a ); + } } |