From bbdacb51d2a51f774ad770bae629c4c947f76ec7 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Mon, 16 Jul 2001 13:46:26 +0000 Subject: [PATCH] #89377#: better support new error handling in UCB --- unotools/source/ucbhelper/ucblockbytes.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index 55175037d89e..9b1f4afb0f53 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ucblockbytes.cxx,v $ * - * $Revision: 1.30 $ + * $Revision: 1.31 $ * - * last change: $Author: mba $ $Date: 2001-07-16 09:28:18 $ + * last change: $Author: mba $ $Date: 2001-07-16 14:46:26 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,6 +65,9 @@ #ifndef _COM_SUN_STAR_UCB_COMMANDFAILEDEXCEPTION_HPP_ #include #endif +#ifndef _COM_SUN_STAR_UCB_UNSUPPORTEDDATASINKEXCEPTION_HPP_ +#include +#endif #ifndef _COM_SUN_STAR_UCB_INTERACTIVEIODEXCEPTION_HPP_ #include #endif @@ -430,6 +433,11 @@ sal_Bool CommandThread_Impl::DoIt() else m_xLockBytes->SetError( ERRCODE_IO_GENERAL ); } + catch ( UnsupportedDataSinkException& r ) + { + bException = true; + m_xLockBytes->SetError( ERRCODE_IO_ACCESSDENIED ); + } catch ( Exception ) { bException = true;