#89377#: better support new error handling in UCB

This commit is contained in:
Mathias Bauer
2001-07-16 13:46:26 +00:00
parent e64a5d3ff7
commit bbdacb51d2

View File

@@ -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 <com/sun/star/ucb/CommandFailedException.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_UNSUPPORTEDDATASINKEXCEPTION_HPP_
#include <com/sun/star/ucb/UnsupportedDataSinkException.hpp>
#endif
#ifndef _COM_SUN_STAR_UCB_INTERACTIVEIODEXCEPTION_HPP_
#include <com/sun/star/ucb/InteractiveIOException.hpp>
#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;