coverity#1371621 Uncaught exception

Change-Id: I82e500ce3b6022f7783f645bbcd4e957588f7bae
This commit is contained in:
Caolán McNamara
2016-08-21 21:06:55 +01:00
parent a473f328aa
commit fdcec8131e

View File

@@ -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));