diff options
author | homeboy445 <akshitsan13@gmail.com> | 2020-12-23 19:46:09 +0530 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-01-07 16:03:34 +0100 |
commit | 7bd5c31472804624d740d8c831d3b043f2d3a0be (patch) | |
tree | dd8f543ffd4d73ab7806653456610b37c8839cd8 /editeng | |
parent | b8d9334b9d4cc03a9b7d1e570a35e0ac6ca42338 (diff) |
tdf#42982 Improved UNO API error reporting
Change-Id: I450ea0b1a19381c47370633d124c2ba906415987
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108356
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/UnoForbiddenCharsTable.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/uno/UnoForbiddenCharsTable.cxx b/editeng/source/uno/UnoForbiddenCharsTable.cxx index 8bb83f65583b..474180f2585d 100644 --- a/editeng/source/uno/UnoForbiddenCharsTable.cxx +++ b/editeng/source/uno/UnoForbiddenCharsTable.cxx @@ -50,7 +50,7 @@ ForbiddenCharacters SvxUnoForbiddenCharsTable::getForbiddenCharacters( const lan SolarMutexGuard aGuard; if (!mxForbiddenChars) - throw RuntimeException(); + throw RuntimeException("No Forbidden Characters present"); const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale ); const ForbiddenCharacters* pForbidden = mxForbiddenChars->GetForbiddenCharacters( eLang, false ); @@ -78,7 +78,7 @@ void SvxUnoForbiddenCharsTable::setForbiddenCharacters(const lang::Locale& rLoca SolarMutexGuard aGuard; if (!mxForbiddenChars) - throw RuntimeException(); + throw RuntimeException("No Forbidden Characters present"); const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale ); mxForbiddenChars->SetForbiddenCharacters( eLang, rForbiddenCharacters ); @@ -91,7 +91,7 @@ void SvxUnoForbiddenCharsTable::removeForbiddenCharacters( const lang::Locale& r SolarMutexGuard aGuard; if (!mxForbiddenChars) - throw RuntimeException(); + throw RuntimeException("No Forbidden Characters present"); const LanguageType eLang = LanguageTag::convertToLanguageType( rLocale ); mxForbiddenChars->ClearForbiddenCharacters( eLang ); |