Kaydet (Commit) a00f11b9 authored tarafından Noel Grandin's avatar Noel Grandin

log the exception here instead of just asserting

.. to make future debugging easier.

Change-Id: I8efc8d8d6f228d9a36d8bb0aebe57913f2af5637
üst 6475609e
......@@ -511,7 +511,7 @@ uno::Reference< container::XNameContainer > lcl_getUnoNumberingStyles(
oFamily >>= xStyles;
}
catch ( const uno::Exception )
catch ( const uno::Exception & )
{
}
......@@ -645,13 +645,15 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper,
OUString sNumRulesName = aPropNameSupplier.GetName( PROP_NUMBERING_RULES );
xStyle->setPropertyValue( sNumRulesName, uno::makeAny( m_xNumRules ) );
}
catch( const lang::IllegalArgumentException& )
catch( const lang::IllegalArgumentException& e )
{
assert( !"Incorrect argument to UNO call" );
SAL_WARN( "writerfilter", "Exception: " << e.Message );
assert( !"Incorrect argument to UNO call" );
}
catch( const uno::RuntimeException& )
catch( const uno::RuntimeException& e )
{
assert( !"Incorrect argument to UNO call" );
SAL_WARN( "writerfilter", "Exception: " << e.Message );
assert( !"Incorrect argument to UNO call" );
}
catch( const uno::Exception& e )
{
......
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