diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-11 21:08:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-12 16:39:56 +0100 |
commit | e7d3f4b704c42a9035891700cf57f35aeca2aec7 (patch) | |
tree | a54669a7da49ddeb6696808d21d2e6e7d5921a64 /dbaccess | |
parent | 32db3f5dc4fccecc8c66b1cb4f4444f2e517e648 (diff) |
coverity#706404 Uncaught exception
Change-Id: I7717b61e89d95cb6d89bb273c22c0503b0853d96
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/databasedocument.cxx | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 29dd1f4298b1..45199e97e27e 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -732,18 +732,21 @@ void SAL_CALL ODatabaseDocument::recoverFromFile( const OUString& i_SourceLocati impl_attachResource( sLogicalDocumentURL, aMediaDescriptor.getPropertyValues(), aGuard ); // <- SYNCHRONIZED } + catch( const IOException& ) + { + throw; + } + catch( const RuntimeException& ) + { + throw; + } + catch( const WrappedTargetException& ) + { + throw; + } catch( const Exception& ) { Any aError = ::cppu::getCaughtException(); - if ( aError.isExtractableTo( ::cppu::UnoType< IOException >::get() ) - || aError.isExtractableTo( ::cppu::UnoType< RuntimeException >::get() ) - || aError.isExtractableTo( ::cppu::UnoType< WrappedTargetException >::get() ) - ) - { - // allowed to leave - throw; - } - throw WrappedTargetException( OUString(), *this, aError ); } } |