dbaccess/source/core/api/FilteredContainer.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 370077502210f4d41a1d2014c3e3f99536217ce7
Author:     Siddhant Chaudhary <urss...@gmail.com>
AuthorDate: Sun Apr 17 00:49:07 2022 +0530
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Apr 18 08:42:46 2022 +0200

    tdf#42982 Improved UNO API error reporting.
    
    Messages to thrown `RuntimeException` instances have been added to make
    the error clearer.
    
    Change-Id: I566c475bd4ddf891a2cebf15664576cff792c118
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133100
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/dbaccess/source/core/api/FilteredContainer.cxx 
b/dbaccess/source/core/api/FilteredContainer.cxx
index 70eb85210a80..a5cf0b156327 100644
--- a/dbaccess/source/core/api/FilteredContainer.cxx
+++ b/dbaccess/source/core/api/FilteredContainer.cxx
@@ -132,7 +132,7 @@ static sal_Int32 createWildCardVector(Sequence< OUString >& 
_rTableFilter, std::
     static void lcl_ensureComposedName( TableInfo& _io_tableInfo, const 
Reference< XDatabaseMetaData >& _metaData )
     {
         if ( !_metaData.is() )
-            throw RuntimeException();
+            throw RuntimeException("lcl_ensureComposedName: _metaData cannot 
be null!");
 
         if ( !_io_tableInfo.sComposedName )
         {
@@ -153,7 +153,7 @@ static sal_Int32 createWildCardVector(Sequence< OUString >& 
_rTableFilter, std::
         lcl_ensureComposedName( _io_tableInfo, _metaData );
 
         if ( !_masterContainer.is() )
-            throw RuntimeException();
+            throw RuntimeException("lcl_ensureType: _masterContainer cannot be 
null!");
 
         OUString sTypeName;
         try

Reply via email to