summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/objstor.cxx1
-rw-r--r--tools/inc/tools/diagnose_ex.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 5b07fad8183d..9c53e22c1eab 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3037,6 +3037,7 @@ uno::Reference< embed::XStorage > SfxObjectShell::GetStorage()
catch( uno::Exception& )
{
// TODO/LATER: error handling?
+ DBG_UNHANDLED_EXCEPTION();
}
}
diff --git a/tools/inc/tools/diagnose_ex.h b/tools/inc/tools/diagnose_ex.h
index f3aecf4f9822..72d11c48700c 100644
--- a/tools/inc/tools/diagnose_ex.h
+++ b/tools/inc/tools/diagnose_ex.h
@@ -44,6 +44,7 @@
#if OSL_DEBUG_LEVEL > 0
#include <com/sun/star/configuration/CorruptedConfigurationException.hpp>
+ #include <com/sun/star/task/ErrorCodeIOException.hpp>
#include <cppuhelper/exc_hlp.hxx>
#include <osl/diagnose.h>
#include <osl/thread.h>
@@ -85,6 +86,14 @@
specialized.Details, osl_getThreadTextEncoding() ); \
} \
} \
+ { \
+ ::com::sun::star::task::ErrorCodeIOException specialized; \
+ if ( caught >>= specialized ) \
+ { \
+ sMessage += "\ndetails: "; \
+ sMessage += ::rtl::OString::valueOf( specialized.ErrCode ); \
+ } \
+ } \
sMessage += "\n"; \
OSL_ENSURE( false, sMessage.getStr() )