summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2022-11-03 10:52:16 -0400
committerHenry Castro <hcastro@collabora.com>2022-12-06 18:08:32 +0000
commit2fd5440c9766fa2833a3fc4dcb8a0d57a089121b (patch)
treef4396ca9921f73e0ead8164308044a61f107bb6c /sfx2
parentcd90f9d0dcf0b6fc71161417deefb501929f67ce (diff)
sfx2: add log information to catch the exception
Add log information for data analysis if the ExportTo fails due to an exception. Signed-off-by: Henry Castro <hcastro@collabora.com> Change-Id: I888545da14f413a970faf50b3ce60d12966f3f9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142239 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objstor.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index 6c83b4066466..3b75c7e79ba9 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2492,8 +2492,20 @@ bool SfxObjectShell::ExportTo( SfxMedium& rMedium )
}
return xFilter->filter( aArgs );
- }catch(...)
- {}
+ }
+ catch (const css::uno::RuntimeException&)
+ {
+ css::uno::Any ex(cppu::getCaughtException());
+ TOOLS_INFO_EXCEPTION("sfx.doc", "exception: " << exceptionToString(ex));
+ }
+ catch (const std::exception& e)
+ {
+ TOOLS_INFO_EXCEPTION("sfx.doc", "exception: " << e.what());
+ }
+ catch(...)
+ {
+ TOOLS_INFO_EXCEPTION("sfx.doc", "Unknown exception!");
+ }
}
return false;