tdf#42982: Improve UNO API error reporting

Change-Id: I36bf1809a296e2d559911f9132fedf84fcd1e249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87577
Tested-by: Michael Stahl <michael.stahl@cib.de>
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
diff --git a/connectivity/source/drivers/firebird/Table.cxx b/connectivity/source/drivers/firebird/Table.cxx
index df52323..0220a84 100644
--- a/connectivity/source/drivers/firebird/Table.cxx
+++ b/connectivity/source/drivers/firebird/Table.cxx
@@ -225,7 +225,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
// ----- XRename --------------------------------------------------------------
void SAL_CALL Table::rename(const OUString&)
{
    throw RuntimeException(); // Firebird doesn't support this.
    throw RuntimeException("Table renaming not supported by Firebird.");
}

// ----- XInterface -----------------------------------------------------------
diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx
index dc8255d..7be79b5 100644
--- a/connectivity/source/drivers/firebird/Tables.cxx
+++ b/connectivity/source/drivers/firebird/Tables.cxx
@@ -51,7 +51,7 @@ ObjectType Tables::createObject(const OUString& rName)
                                                                  uno::Sequence< OUString >());

    if (!xTables.is())
        throw RuntimeException();
        throw RuntimeException("Could not acquire table.");

    uno::Reference< XRow > xRow(xTables,UNO_QUERY_THROW);

@@ -66,7 +66,7 @@ ObjectType Tables::createObject(const OUString& rName)
                              xRow->getString(5))); // Description / Remarks / Comments

    if (xTables->next())
        throw RuntimeException(); // Only one table should be returned
        throw RuntimeException("Found more tables than expected.");

    return xRet;
}