summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-05 13:57:05 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-25 17:25:07 +0200
commitfb68711fc3fbab99e47cc94f5abd27b1425bc468 (patch)
tree972e587eb2721f3dbf15fad289f56aa1f1d2ee81 /writerfilter
parenta9e16b168c7eb046c62d6d7d2669bdea944da279 (diff)
fall flat on the face when doing UNO call with incorrect arguments
I think this is reasonable with debug builds, the import filter should check the values are in sensible ranges.
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/NumberingManager.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/NumberingManager.cxx b/writerfilter/source/dmapper/NumberingManager.cxx
index 6582c1fa1396..0b8000a72423 100644
--- a/writerfilter/source/dmapper/NumberingManager.cxx
+++ b/writerfilter/source/dmapper/NumberingManager.cxx
@@ -614,9 +614,17 @@ void ListDef::CreateNumberingRules( DomainMapper& rDMapper,
OUString sNumRulesName = aPropNameSupplier.GetName( PROP_NUMBERING_RULES );
xStyle->setPropertyValue( sNumRulesName, uno::makeAny( m_xNumRules ) );
}
- catch( const uno::Exception& )
+ catch( const lang::IllegalArgumentException& )
{
- OSL_FAIL( "ListTable::CreateNumberingRules");
+ assert( !"Incorrect argument to UNO call" );
+ }
+ catch( const uno::RuntimeException& )
+ {
+ assert( !"Incorrect argument to UNO call" );
+ }
+ catch( const uno::Exception& e )
+ {
+ SAL_WARN( "writerfilter", "Exception: " << e.Message );
}
}