connectivity/source/commontools/dbexception.cxx | 2 +- connectivity/source/commontools/paramwrapper.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit c5ed66adbe95cd1ed104ae5fcbf9ecc816f59ff2 Author: ashtroll <[email protected]> AuthorDate: Wed Dec 31 16:37:06 2025 +0530 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Fri Feb 20 16:42:05 2026 +0100 tdf#42982 Improve UNO API error reporting Change-Id: I2fb3f830c6f44a59917b1ed5b1d50dd4f0000000 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196355 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx index 64c4d0538460..b4bf35637710 100644 --- a/connectivity/source/commontools/dbexception.cxx +++ b/connectivity/source/commontools/dbexception.cxx @@ -242,7 +242,7 @@ void SQLExceptionInfo::doThrow() { if ( m_aContent.getValueTypeClass() == TypeClass_EXCEPTION ) ::cppu::throwException( m_aContent ); - throw RuntimeException(); + throw RuntimeException("SQLExceptionInfo::doThrow: no valid exception content"); } SQLExceptionIteratorHelper::SQLExceptionIteratorHelper( const SQLExceptionInfo& _rChainStart ) diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx index d213d6625602..848ee2cc0133 100644 --- a/connectivity/source/commontools/paramwrapper.cxx +++ b/connectivity/source/commontools/paramwrapper.cxx @@ -71,7 +71,7 @@ namespace dbtools::param if ( m_xDelegator.is() ) m_xDelegatorPSI = m_xDelegator->getPropertySetInfo(); if ( !m_xDelegatorPSI.is() ) - throw RuntimeException(); + throw RuntimeException("ParameterWrapper: PropertySetInfo is not available"); } @@ -85,7 +85,7 @@ namespace dbtools::param if ( m_xDelegator.is() ) m_xDelegatorPSI = m_xDelegator->getPropertySetInfo(); if ( !m_xDelegatorPSI.is() ) - throw RuntimeException(); + throw RuntimeException("ParameterWrapper: PropertySetInfo is not available"); OSL_ENSURE( !m_aIndexes.empty(), "ParameterWrapper::ParameterWrapper: sure about the indexes?" ); }
