From fdcec8131e6e2c5eb9df243c34f34f7742b975bc Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 21 Aug 2016 21:06:55 +0100 Subject: coverity#1371621 Uncaught exception Change-Id: I82e500ce3b6022f7783f645bbcd4e957588f7bae --- connectivity/source/drivers/firebird/Connection.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 121878572933..9a746da5b988 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -839,7 +839,19 @@ void SAL_CALL Connection::documentEventOccured( const DocumentEvent& Event ) if ( m_bIsEmbedded && m_xEmbeddedStorage.is() ) { SAL_INFO("connectivity.firebird", "Writing .fbk from running db"); - runBackupService(isc_action_svc_backup); + try + { + runBackupService(isc_action_svc_backup); + } + catch (const SQLException& e) + { + WrappedTargetException aExceptionWrapper; + aExceptionWrapper.Context = e.Context; + aExceptionWrapper.Message = e.Message; + aExceptionWrapper.TargetException <<= e; + throw WrappedTargetException( aExceptionWrapper ); + } + Reference< XStream > xDBStream(m_xEmbeddedStorage->openStreamElement(our_sFBKLocation, ElementModes::WRITE)); -- cgit