summaryrefslogtreecommitdiff
path: root/comphelper/source/property/propertycontainerhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/property/propertycontainerhelper.cxx')
-rw-r--r--comphelper/source/property/propertycontainerhelper.cxx17
1 files changed, 7 insertions, 10 deletions
diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx
index 5e7fa4f00e16..adaa6557a860 100644
--- a/comphelper/source/property/propertycontainerhelper.cxx
+++ b/comphelper/source/property/propertycontainerhelper.cxx
@@ -200,16 +200,13 @@ namespace
{
void lcl_throwIllegalPropertyValueTypeException( const PropertyDescription& _rProperty, const Any& _rValue )
{
- OUStringBuffer aErrorMessage;
- aErrorMessage.append( "The given value cannot be converted to the required property type." );
- aErrorMessage.append( "\n(property name \"" );
- aErrorMessage.append( _rProperty.aProperty.Name );
- aErrorMessage.append( "\", found value type \"" );
- aErrorMessage.append( _rValue.getValueType().getTypeName() );
- aErrorMessage.append( "\", required property type \"" );
- aErrorMessage.append( _rProperty.aProperty.Type.getTypeName() );
- aErrorMessage.append( "\")" );
- throw IllegalArgumentException( aErrorMessage.makeStringAndClear(), nullptr, 4 );
+ throw IllegalArgumentException(
+ "The given value cannot be converted to the required property type."
+ " (property name \"" + _rProperty.aProperty.Name
+ + "\", found value type \"" + _rValue.getValueType().getTypeName()
+ + "\", required property type \"" + _rProperty.aProperty.Type.getTypeName()
+ + "\")",
+ nullptr, 4 );
}
}