From 5495a63a63a5a0879ef1ac2a5a79ad376cb1c85a Mon Sep 17 00:00:00 2001 From: Jörg Budischewski Date: Thu, 1 Mar 2001 11:46:53 +0000 Subject: io exception now caught during endDocument --- sax/source/expatwrap/saxwriter.cxx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'sax') 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 ); + } } -- cgit