summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoparagraph.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoparagraph.cxx')
-rw-r--r--sw/source/core/unocore/unoparagraph.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index 4077e90ab831..9b4b0ea77c36 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -23,6 +23,7 @@
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
+#include <tools/diagnose_ex.h>
#include <cmdid.h>
#include <unomid.h>
@@ -677,7 +678,7 @@ SwXParagraph::setPropertyValuesTolerant(
catch (beans::UnknownPropertyException &)
{
// should not occur because property was searched for before
- OSL_FAIL( "unexpected exception caught" );
+ TOOLS_WARN_EXCEPTION( "sw", "unexpected exception caught" );
pFailed[ nFailed++ ].Result =
beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
}
@@ -816,7 +817,7 @@ SwXParagraph::Impl::GetPropertyValuesTolerant_Impl(
catch (beans::UnknownPropertyException &)
{
// should not occur because property was searched for before
- OSL_FAIL( "unexpected exception caught" );
+ TOOLS_WARN_EXCEPTION( "sw", "unexpected exception caught" );
rResult.Result = beans::TolerantPropertySetResultType::UNKNOWN_PROPERTY;
}
catch (lang::IllegalArgumentException &)