accessibility/source/extended/accessibleiconchoicectrl.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b762eaba776abde3173a39df3133d1d1b40ccd44
Author:     Ian Barkley-Yeung <ibarkleyye...@gmail.com>
AuthorDate: Sun Apr 5 21:07:04 2020 -0700
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Apr 21 07:52:37 2020 +0200

    tdf#42982: Improve UNO API error reporting
    
    Add more info to the exception in
    AccessibleIconChoiceCtrl::getAccessibleChild()
    
    Change-Id: Ie6e778f76719eb463508647f0367e089ab0ae8ec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92514
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/accessibility/source/extended/accessibleiconchoicectrl.cxx 
b/accessibility/source/extended/accessibleiconchoicectrl.cxx
index 679a6157de0c..f521a235e8d2 100644
--- a/accessibility/source/extended/accessibleiconchoicectrl.cxx
+++ b/accessibility/source/extended/accessibleiconchoicectrl.cxx
@@ -162,7 +162,10 @@ namespace accessibility
         VclPtr<SvtIconChoiceCtrl> pCtrl = getCtrl();
         SvxIconChoiceCtrlEntry* pEntry = pCtrl->GetEntry(i);
         if ( !pEntry )
-            throw RuntimeException();
+            throw RuntimeException("getAccessibleChild: Entry "
+                                   + OUString::number(i) + " not found",
+                static_cast<css::lang::XTypeProvider*>(
+                    static_cast<VCLXAccessibleComponent_BASE*>(this)));
 
         return new AccessibleIconChoiceCtrlEntry( *pCtrl, i, this );
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to