summaryrefslogtreecommitdiff
path: root/stoc/source/typeconv
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-30 11:22:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 10:23:58 +0000
commitbbd34216dca07bb37b9188147c42e64bbf875d54 (patch)
tree72e5b3db79e7857983c77b58637ff2c519c5c7e6 /stoc/source/typeconv
parent2562ad74d1945322e9fdf8af5fc0b1f17e854c9b (diff)
improve exception messages in stoc
Change-Id: I43716332ab916e5ec7b8ab7a4d14895d060a9bd4 Reviewed-on: https://gerrit.libreoffice.org/33692 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/typeconv')
-rw-r--r--stoc/source/typeconv/convert.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 37b87f217900..3cca24c8d1a1 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -535,13 +535,13 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy
if (!ifc || !ifc->is())
{
throw CannotConvertException(
- "value is no interface!",
+ "value is not interface",
Reference< XInterface >(), aDestinationClass, FailReason::NO_SUCH_INTERFACE, 0 );
}
if (! (aRet = (*ifc)->queryInterface(aDestType )).hasValue())
{
throw CannotConvertException(
- "value has no such interface!",
+ "value does not implement " + aDestType.getTypeName(),
Reference< XInterface >(), aDestinationClass, FailReason::NO_SUCH_INTERFACE, 0 );
}
break;
@@ -740,7 +740,7 @@ Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestina
else
{
throw CannotConvertException(
- "STRING has no boolean value!",
+ "STRING has no boolean value, " + aStr,
Reference< XInterface >(), aDestinationClass, FailReason::IS_NOT_BOOL, 0 );
}
}