summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2001-10-26 13:57:27 +0000
committerStephan Bergmann <sb@openoffice.org>2001-10-26 13:57:27 +0000
commita3ce03f7b175908363fe07957de50658dc62d852 (patch)
tree970f0ce679c10557fb0d4e96c2ec6a8e4828d703 /ucb
parent0848891ea85b3f3610c5995049dc748f0cbaa1c4 (diff)
#93494# Merged in 1.5.6.1.
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filstr.cxx23
1 files changed, 22 insertions, 1 deletions
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx
index 0e554eeb2568..7e74d94cd36f 100644
--- a/ucb/source/ucp/file/filstr.cxx
+++ b/ucb/source/ucp/file/filstr.cxx
@@ -1,3 +1,13 @@
+#ifndef _COM_SUN_STAR_IO_IOEXCEPTION_HPP_
+#include "com/sun/star/io/IOException.hpp"
+#endif
+#ifndef _COM_SUN_STAR_UNO_RUNTIMEEXCEPTION_HPP_
+#include "com/sun/star/uno/RuntimeException.hpp"
+#endif
+#ifndef _OSL_DIAGNOSE_H_
+#include "osl/diagnose.h"
+#endif
+
#ifndef _FILSTR_HXX_
#include "filstr.hxx"
#endif
@@ -96,7 +106,18 @@ XStream_impl::XStream_impl( shell* pMyShell,const rtl::OUString& aUncPath )
XStream_impl::~XStream_impl()
{
- closeStream();
+ try
+ {
+ closeStream();
+ }
+ catch (io::IOException const &)
+ {
+ OSL_ENSURE(false, "unexpected situation");
+ }
+ catch (uno::RuntimeException const &)
+ {
+ OSL_ENSURE(false, "unexpected situation");
+ }
}