sw/source/core/unocore/unobkm.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 9da2ba0f82c8b1e2ecaa4cdbad69f452808fb601
Author:     David Hashe <m...@dhashe.com>
AuthorDate: Sat Feb 8 09:56:57 2025 -0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Feb 8 19:04:42 2025 +0100

    tdf#42982 Make exception messages more consistent
    
    Follow-on patch to commit b23c2ba4c4ecf447de7e0db62a395856e70de1dd
    (tdf#42982 Improve UNO API error reporting, 2025-01-15).
    
    Change-Id: I80e05c1f7790f63f1372d719b512c4800e05bf05
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181297
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sw/source/core/unocore/unobkm.cxx 
b/sw/source/core/unocore/unobkm.cxx
index 1dbd6cc88815..f37f2f13b2d5 100644
--- a/sw/source/core/unocore/unobkm.cxx
+++ b/sw/source/core/unocore/unobkm.cxx
@@ -194,7 +194,7 @@ void SwXBookmark::attachToRangeEx(
     if (m_pImpl->m_pRegisteredBookmark)
     {
         throw uno::RuntimeException(
-            u"SwXBookmark::attachToRange(..): a Mark is already present"_ustr);
+            u"SwXBookmark::attachToRange(): a Mark is already present"_ustr);
     }
 
     SwXTextRange* pRange = dynamic_cast<SwXTextRange*>(xTextRange.get());
@@ -623,7 +623,7 @@ OUString SwXFieldmark::getFieldType()
     assert( GetBookmark() == nullptr || pBkm != nullptr );
     if(!pBkm)
         throw uno::RuntimeException(
-            u"SwXFieldmark::getFieldType()>: Mark is empty"_ustr);
+            u"SwXFieldmark::getFieldType(): Mark is empty"_ustr);
     return pBkm->GetFieldname();
 }
 
@@ -634,7 +634,7 @@ void SwXFieldmark::setFieldType(const OUString & fieldType)
     assert( GetBookmark() == nullptr || pBkm != nullptr );
     if(!pBkm)
         throw uno::RuntimeException(
-            u"SwXFieldmark::setFieldType(..): Mark is empty"_ustr);
+            u"SwXFieldmark::setFieldType(): Mark is empty"_ustr);
 
     OUString const oldFieldType(getFieldType());
     if (fieldType == oldFieldType)
@@ -662,7 +662,7 @@ void SwXFieldmark::setFieldType(const OUString & fieldType)
     }
 
     throw uno::RuntimeException(
-        u"SwXFieldmark::setFieldType(..): changing to that type isn't 
implemented"_ustr);
+        u"SwXFieldmark::setFieldType(): changing to that type isn't 
implemented"_ustr);
 }
 
 uno::Reference<container::XNameContainer> SwXFieldmark::getParameters()
@@ -737,7 +737,7 @@ SwXFieldmark::setPropertyValue(const OUString& PropertyName,
         bool bChecked( false );
         if ( !(pCheckboxFm && ( rValue >>= bChecked )) )
             throw uno::RuntimeException(
-                u"SwXFieldmark::setPropertyValue(..): either Mark is empty or 
property value is not assignable to bool"_ustr);
+                u"SwXFieldmark::setPropertyValue(): either Mark is empty or 
property value is not assignable to bool"_ustr);
 
         pCheckboxFm->SetChecked( bChecked );
     }
@@ -763,7 +763,7 @@ uno::Any SAL_CALL SwXFieldmark::getPropertyValue(const 
OUString& rPropertyName)
         ::sw::mark::CheckboxFieldmark* pCheckboxFm = getCheckboxFieldmark();
         if ( !pCheckboxFm )
             throw uno::RuntimeException(
-                u"SwXFieldmark::getPropertyValue(..): Mark is empty"_ustr);
+                u"SwXFieldmark::getPropertyValue(): Mark is empty"_ustr);
 
         return uno::Any( pCheckboxFm->IsChecked() );
     }

Reply via email to