Kaydet (Commit) af8c7599 authored tarafından Michael Stahl's avatar Michael Stahl

embeddedobj: log some exceptions

Change-Id: I2e565bc6e57f7bf59fdd6eb5fc577e0b3d58b9f6
üst ca8ac449
...@@ -854,8 +854,10 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID ) ...@@ -854,8 +854,10 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID )
{ {
throw; throw;
} }
catch( uno::Exception& ) catch (uno::Exception const& e)
{ {
SAL_WARN("embeddedobj.ole", "OleEmbeddedObject::doVerb: "
"-9 fallback path: exception caught: " << e.Message);
} }
} }
......
...@@ -167,8 +167,10 @@ sal_Bool OwnView_Impl::CreateModelFromURL( const ::rtl::OUString& aFileURL ) ...@@ -167,8 +167,10 @@ sal_Bool OwnView_Impl::CreateModelFromURL( const ::rtl::OUString& aFileURL )
} }
} }
} }
catch( const uno::Exception& ) catch (uno::Exception const& e)
{ {
SAL_WARN("embeddedobj.ole", "OwnView_Impl::CreateModelFromURL:"
" exception caught: " << e.Message);
} }
} }
......
...@@ -75,6 +75,11 @@ certain functionality. ...@@ -75,6 +75,11 @@ certain functionality.
@li @c editeng @li @c editeng
@li @c editeng.items @li @c editeng.items
@section embeddedobj
@li @c embeddedobj - embedded objects
@li @c embeddedobj.ole - OLE embedded objects
@section extensions @section extensions
@li @c extensions.plugin @li @c extensions.plugin
......
...@@ -971,8 +971,11 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb ) ...@@ -971,8 +971,11 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb )
m_pImp->m_aScaleHeight = Fraction( aScaledArea.GetHeight(), aNewSize.Height() ); m_pImp->m_aScaleHeight = Fraction( aScaledArea.GetHeight(), aNewSize.Height() );
} }
} }
catch ( uno::Exception& ) catch (uno::Exception const& e)
{ {
SAL_WARN("embeddedobj", "SfxInPlaceClient::DoVerb:"
" -9 fallback path: exception caught: "
<< e.Message);
nError = ERRCODE_SO_GENERALERROR; nError = ERRCODE_SO_GENERALERROR;
} }
} }
...@@ -982,8 +985,10 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb ) ...@@ -982,8 +985,10 @@ ErrCode SfxInPlaceClient::DoVerb( long nVerb )
// TODO/LATER: it would be nice to be able to provide the current target state outside // TODO/LATER: it would be nice to be able to provide the current target state outside
nError = ERRCODE_SO_CANNOT_DOVERB_NOW; nError = ERRCODE_SO_CANNOT_DOVERB_NOW;
} }
catch ( uno::Exception& ) catch (uno::Exception const& e)
{ {
SAL_WARN("embeddedobj", "SfxInPlaceClient::DoVerb:"
" exception caught: " << e.Message);
nError = ERRCODE_SO_GENERALERROR; nError = ERRCODE_SO_GENERALERROR;
//TODO/LATER: better error handling //TODO/LATER: better error handling
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment