summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2022-11-03 10:52:16 -0400
committerAron Budea <aron.budea@collabora.com>2022-11-03 19:47:05 +0100
commit17bf69ba9d8168106162d1a4ddef7cb34d50fe73 (patch)
tree91b1353aa714d9d483d3d08daad311088e20576f /sfx2
parent7de586083f1d081939d88d8b0984a37c6d2e28e7 (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/+/142202 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Aron Budea <aron.budea@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objstor.cxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index cee35fc3443c..e657ca6dad1c 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -2486,8 +2486,19 @@ bool SfxObjectShell::ExportTo( SfxMedium& rMedium )
}
return xFilter->filter( aArgs );
- }catch(...)
- {}
+ }
+ catch (const css::uno::RuntimeException & e)
+ {
+ SAL_INFO("sfx.doc", "ExportTo: " << e);
+ }
+ catch (const std::exception & e)
+ {
+ SAL_INFO("sfx.doc", "ExportTo: " << e.what());
+ }
+ catch(...)
+ {
+ SAL_INFO("sfx.doc", "ExportTo: Unknown exception!");
+ }
}
return false;