diff options
author | Ian Barkley-Yeung <ibarkleyyeung@gmail.com> | 2020-04-05 21:07:04 -0700 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-21 07:52:37 +0200 |
commit | b762eaba776abde3173a39df3133d1d1b40ccd44 (patch) | |
tree | 8ca761d15970247f9464fa94b86344d95ab9bc71 | |
parent | b613896e3bb256418b2e31665da5baa6a9cdab56 (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | accessibility/source/extended/accessibleiconchoicectrl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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 ); } |