summaryrefslogtreecommitdiff
path: root/basic/source/basmgr/basmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/basmgr/basmgr.cxx')
-rw-r--r--basic/source/basmgr/basmgr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 03b951ffc02d..1254768a2b00 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1753,7 +1753,7 @@ void ModuleContainer_Impl::insertByName( const OUString& aName, const uno::Any&
const uno::Type& aAnyType = aElement.getValueType();
if( aModuleType != aAnyType )
{
- throw lang::IllegalArgumentException();
+ throw lang::IllegalArgumentException("types do not match", static_cast<cppu::OWeakObject*>(this), 2);
}
uno::Reference< script::XStarBasicModuleInfo > xMod;
aElement >>= xMod;
@@ -1917,7 +1917,7 @@ void DialogContainer_Impl::insertByName( const OUString&, const uno::Any& aEleme
const uno::Type& aAnyType = aElement.getValueType();
if( aModuleType != aAnyType )
{
- throw lang::IllegalArgumentException();
+ throw lang::IllegalArgumentException("types do not match", static_cast<cppu::OWeakObject*>(this), 2);
}
uno::Reference< script::XStarBasicDialogInfo > xMod;
aElement >>= xMod;