sfx2/source/doc/objstor.cxx |   15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

New commits:
commit 17bf69ba9d8168106162d1a4ddef7cb34d50fe73
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Thu Nov 3 10:52:16 2022 -0400
Commit:     Aron Budea <aron.bu...@collabora.com>
CommitDate: Thu Nov 3 19:47:05 2022 +0100

    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 <hcas...@collabora.com>
    Change-Id: I888545da14f413a970faf50b3ce60d12966f3f9e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142202
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Aron Budea <aron.bu...@collabora.com>

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;

Reply via email to