summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorFaruk Demirbaş <miskimit@gmail.com>2020-01-28 10:43:36 +0300
committerMichael Stahl <michael.stahl@cib.de>2020-02-20 11:00:38 +0100
commiteee035a7c0d8923134d0e3a8520d13706ce9bf9f (patch)
tree2a37468390c5f5cbd06002ad0c175290bfa57d40 /connectivity
parentd07dc2bc0488dfa451dd3f456f2da78c8da26a70 (diff)
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>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/Table.cxx2
-rw-r--r--connectivity/source/drivers/firebird/Tables.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/Table.cxx b/connectivity/source/drivers/firebird/Table.cxx
index df523235e2ac..0220a8458264 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 dc8255dbda61..7be79b5a2d4a 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;
}