diff options
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydata.cxx | 8 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgcontent.cxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydata.cxx b/ucb/source/ucp/hierarchy/hierarchydata.cxx index 75665a918e74..7fbae5c73d1e 100644 --- a/ucb/source/ucp/hierarchy/hierarchydata.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydata.cxx @@ -448,10 +448,6 @@ sal_Bool HierarchyEntry::setData( } } } - catch ( uno::RuntimeException const & ) - { - throw; - } catch ( lang::IllegalArgumentException const & ) { // replaceByName, insertByName @@ -459,6 +455,10 @@ sal_Bool HierarchyEntry::setData( OSL_FAIL( "HierarchyEntry::setData - caught IllegalArgumentException!" ); } + catch ( uno::RuntimeException const & ) + { + throw; + } catch ( container::NoSuchElementException const & ) { // replaceByName, getByName diff --git a/ucb/source/ucp/package/pkgcontent.cxx b/ucb/source/ucp/package/pkgcontent.cxx index 7bef455c2a17..43146545402f 100644 --- a/ucb/source/ucp/package/pkgcontent.cxx +++ b/ucb/source/ucp/package/pkgcontent.cxx @@ -2596,16 +2596,16 @@ sal_Bool Content::storeData( const uno::Reference< io::XInputStream >& xStream ) xParentContainer->insertByName( m_aProps.aTitle, uno::makeAny( xNew ) ); } - catch ( uno::RuntimeException const & ) - { - throw; - } catch ( lang::IllegalArgumentException const & ) { // insertByName OSL_FAIL( "Content::storeData - insertByName failed!" ); return sal_False; } + catch ( uno::RuntimeException const & ) + { + throw; + } catch ( container::ElementExistException const & ) { // insertByName |