tdf#42982 add detail exception reason for UnoControls
Change-Id: Ia62a0015d68fe819113322e27b93054d38d98aea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88996 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
This commit is contained in:
parent
bc994a4b01
commit
d8fe52d759
@ -105,8 +105,7 @@ Type SAL_CALL OConnectionPointHelper::getConnectionType()
|
|||||||
// Set default return value, if method failed.
|
// Set default return value, if method failed.
|
||||||
if ( !impl_LockContainer() )
|
if ( !impl_LockContainer() )
|
||||||
{
|
{
|
||||||
// Container not exist! It's a runtime error.
|
throw RuntimeException("Container does not exist!");
|
||||||
throw RuntimeException();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If container reference valid, return right type of supported interfaces of THIS connectionpoint.
|
// If container reference valid, return right type of supported interfaces of THIS connectionpoint.
|
||||||
@ -149,8 +148,7 @@ void SAL_CALL OConnectionPointHelper::advise( const Reference< XInterface >& xLi
|
|||||||
// Operation is permitted only, if reference to container is valid!
|
// Operation is permitted only, if reference to container is valid!
|
||||||
if ( !impl_LockContainer() )
|
if ( !impl_LockContainer() )
|
||||||
{
|
{
|
||||||
// Container not exist! It's a runtime error.
|
throw RuntimeException("Container does not exist!");
|
||||||
throw RuntimeException();
|
|
||||||
}
|
}
|
||||||
// Forward it to OConnectionPointHelperContainer!
|
// Forward it to OConnectionPointHelperContainer!
|
||||||
m_pContainerImplementation->advise( m_aInterfaceType, xListener );
|
m_pContainerImplementation->advise( m_aInterfaceType, xListener );
|
||||||
@ -167,8 +165,7 @@ void SAL_CALL OConnectionPointHelper::unadvise( const Reference< XInterface >& x
|
|||||||
// Operation is permitted only, if reference to container is valid!
|
// Operation is permitted only, if reference to container is valid!
|
||||||
if ( !impl_LockContainer() )
|
if ( !impl_LockContainer() )
|
||||||
{
|
{
|
||||||
// Container not exist! It's a runtime error.
|
throw RuntimeException("Container does not exist!");
|
||||||
throw RuntimeException();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// Forward it to OConnectionPointHelperContainer!
|
// Forward it to OConnectionPointHelperContainer!
|
||||||
@ -186,8 +183,7 @@ Sequence< Reference< XInterface > > SAL_CALL OConnectionPointHelper::getConnecti
|
|||||||
// Operation is permitted only, if reference to container is valid!
|
// Operation is permitted only, if reference to container is valid!
|
||||||
if ( !impl_LockContainer() )
|
if ( !impl_LockContainer() )
|
||||||
{
|
{
|
||||||
// Container not exist! It's a runtime error.
|
throw RuntimeException("Container does not exist!");
|
||||||
throw RuntimeException();
|
|
||||||
}
|
}
|
||||||
// Set default return value, if method failed.
|
// Set default return value, if method failed.
|
||||||
Sequence< Reference< XInterface > > seqReturnConnections;
|
Sequence< Reference< XInterface > > seqReturnConnections;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user