summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2001-03-01 11:46:53 +0000
committerJörg Budischewski <jbu@openoffice.org>2001-03-01 11:46:53 +0000
commit5495a63a63a5a0879ef1ac2a5a79ad376cb1c85a (patch)
tree3fa596074825b852f64cdcef29033ca94b4323d6 /sax/source
parent5fa86ed7c1248cc92fe274466d9d812bafea48df (diff)
io exception now caught during endDocument
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/expatwrap/saxwriter.cxx18
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 );
+ }
}