summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/filstr.cxx
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
commit2a9bd9e160174f16fb0e119dc013362f46e65afe (patch)
treefe47310da0546539f211d07418fb7d4320f0a2ea /ucb/source/ucp/file/filstr.cxx
parent15d1a4688071639d6ecbf10dd0466b0897385c0a (diff)
#93494# Merged in 1.5.6.1.
Diffstat (limited to 'ucb/source/ucp/file/filstr.cxx')
-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 d1cceab10c..f32705235e 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");
+ }
}