Kaydet (Commit) 584d4f5d authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158396 Uncaught exception

Change-Id: I6752a534bca8f81627cdd616ac0f2268824299e0
üst 6abcd7fe
...@@ -191,8 +191,35 @@ sal_Int32 SAL_CALL Blob::readBytes(uno::Sequence< sal_Int8 >& rDataOut, ...@@ -191,8 +191,35 @@ sal_Int32 SAL_CALL Blob::readBytes(uno::Sequence< sal_Int8 >& rDataOut,
throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception) throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{ {
MutexGuard aGuard(m_aMutex); MutexGuard aGuard(m_aMutex);
checkDisposed(Blob_BASE::rBHelper.bDisposed);
ensureBlobIsOpened(); try
{
checkDisposed(Blob_BASE::rBHelper.bDisposed);
ensureBlobIsOpened();
}
catch (const NotConnectedException&)
{
throw;
}
catch (const BufferSizeExceededException&)
{
throw;
}
catch (const IOException&)
{
throw;
}
catch (const RuntimeException&)
{
throw;
}
catch (const Exception& e)
{
css::uno::Any a(cppu::getCaughtException());
throw css::lang::WrappedTargetRuntimeException(
"wrapped Exception " + e.Message,
css::uno::Reference<css::uno::XInterface>(), a);
}
// Ensure we have enough space for the amount of data we can actually read. // Ensure we have enough space for the amount of data we can actually read.
const sal_Int64 nBytesAvailable = m_nBlobLength - m_nBlobPosition; const sal_Int64 nBytesAvailable = m_nBlobLength - m_nBlobPosition;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment