diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-14 08:28:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-14 09:21:03 +0100 |
commit | 415e04894f909710e0f1dd4d03e6ba9f550afaea (patch) | |
tree | f4661dc19935e1c0340e3ad32da2a32f4b0884e5 /package | |
parent | 0fc759c6f0f41fddaf043c7659aeaad25970c146 (diff) |
coverity#706574 Uncaught exception
and
coverity#706575 Uncaught exception
Change-Id: I91f036d81deff31e47365c37445eb6b4cfcd992b
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/xstorage.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index b21edb208ca9..bab645ff63a0 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -4651,7 +4651,10 @@ void SAL_CALL OStorage::setEncryptionAlgorithms( const uno::Sequence< beans::Nam m_pImpl->AddLog( aException.Message ); m_pImpl->AddLog( THROW_WHERE "Rethrow" ); - throw io::IOException( THROW_WHERE ); + uno::Any aCaught( ::cppu::getCaughtException() ); + throw lang::WrappedTargetRuntimeException( THROW_WHERE "Can not open package!", + static_cast< OWeakObject* >( this ), + aCaught ); } } } @@ -4689,7 +4692,7 @@ uno::Sequence< beans::NamedValue > SAL_CALL OStorage::getEncryptionAlgorithms() m_pImpl->AddLog( THROW_WHERE "Rethrow" ); uno::Any aCaught( ::cppu::getCaughtException() ); - throw lang::WrappedTargetException( THROW_WHERE "Can not open package!", + throw lang::WrappedTargetRuntimeException( THROW_WHERE "Can not open package!", static_cast< OWeakObject* >( this ), aCaught ); } @@ -4710,7 +4713,10 @@ uno::Sequence< beans::NamedValue > SAL_CALL OStorage::getEncryptionAlgorithms() m_pImpl->AddLog( aException.Message ); m_pImpl->AddLog( THROW_WHERE "Rethrow" ); - throw io::IOException( THROW_WHERE ); + uno::Any aCaught( ::cppu::getCaughtException() ); + throw lang::WrappedTargetRuntimeException( THROW_WHERE "Can not open package!", + static_cast< OWeakObject* >( this ), + aCaught ); } } |