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 <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
ashtroll
2026-02-20 16:42:05 +01:00
committed by Ilmari Lauhakangas
parent 17b15a7f6f
commit c5ed66adbe
2 changed files with 3 additions and 3 deletions
@@ -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 )
@@ -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?" );
}