summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-21 21:06:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-21 21:06:55 +0100
commitfdcec8131e6e2c5eb9df243c34f34f7742b975bc (patch)
tree959427d55ec0604b431420c2bd1dbf3412facc32 /connectivity
parenta473f328aa2b3d3d8049e2b87e1cc91b03dc72ec (diff)
coverity#1371621 Uncaught exception
Change-Id: I82e500ce3b6022f7783f645bbcd4e957588f7bae
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Connection.cxx14
1 files changed, 13 insertions, 1 deletions
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));