diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-06-04 16:52:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-06-04 16:57:55 +0200 |
commit | eb68bf18f2d859486c4a737abb2536a6afe45411 (patch) | |
tree | 197fe3527a5367556ea2c24959f26a9f63cbdf6d | |
parent | b6526cfa9070c5b9734c92ca20f16b16807b1031 (diff) |
Improve error reporting
Change-Id: Ib8017f950f414601676b54c36425a0592b4cc395
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 1 | ||||
-rw-r--r-- | tools/inc/tools/diagnose_ex.h | 9 |
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() ) |