summaryrefslogtreecommitdiff
path: root/UnoControls/source/controls/OConnectionPointHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'UnoControls/source/controls/OConnectionPointHelper.cxx')
-rw-r--r--UnoControls/source/controls/OConnectionPointHelper.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/UnoControls/source/controls/OConnectionPointHelper.cxx b/UnoControls/source/controls/OConnectionPointHelper.cxx
index a7f18ea2973b..f2c99421d3c6 100644
--- a/UnoControls/source/controls/OConnectionPointHelper.cxx
+++ b/UnoControls/source/controls/OConnectionPointHelper.cxx
@@ -105,8 +105,7 @@ Type SAL_CALL OConnectionPointHelper::getConnectionType()
// Set default return value, if method failed.
if ( !impl_LockContainer() )
{
- // Container not exist! It's a runtime error.
- throw RuntimeException();
+ throw RuntimeException("Container does not exist!");
}
// 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!
if ( !impl_LockContainer() )
{
- // Container not exist! It's a runtime error.
- throw RuntimeException();
+ throw RuntimeException("Container does not exist!");
}
// Forward it to OConnectionPointHelperContainer!
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!
if ( !impl_LockContainer() )
{
- // Container not exist! It's a runtime error.
- throw RuntimeException();
+ throw RuntimeException("Container does not exist!");
}
// 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!
if ( !impl_LockContainer() )
{
- // Container not exist! It's a runtime error.
- throw RuntimeException();
+ throw RuntimeException("Container does not exist!");
}
// Set default return value, if method failed.
Sequence< Reference< XInterface > > seqReturnConnections;