add property name when throwing css::uno::UnknownPropertyException

Change-Id: I17f06c9415b9d43b6d8896360e07216c2856367a
Reviewed-on: https://gerrit.libreoffice.org/79627
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2019-09-26 14:52:33 +02:00
parent e51a2917ab
commit b56a4eaf5e
74 changed files with 232 additions and 253 deletions

View File

@ -4204,7 +4204,7 @@ void SAL_CALL ModuleInvocationProxy::setValue(const OUString& rProperty, const A
{
// TODO: Check vba behavior concerning missing function
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyFunctionName);
}
// Setup parameter
@ -4242,7 +4242,7 @@ Any SAL_CALL ModuleInvocationProxy::getValue(const OUString& rProperty)
{
// TODO: Check vba behavior concerning missing function
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyFunctionName);
}
// Call method

View File

@ -293,7 +293,7 @@ DocObjectWrapper::setValue( const OUString& aPropertyName, const Any& aValue )
SbPropertyRef pProperty = getProperty( aPropertyName );
if ( !pProperty.is() )
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
unoToSbxValue( pProperty.get(), aValue );
}
@ -305,7 +305,7 @@ DocObjectWrapper::getValue( const OUString& aPropertyName )
SbPropertyRef pProperty = getProperty( aPropertyName );
if ( !pProperty.is() )
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
SbxVariable* pProp = pProperty.get();
if ( pProp->GetType() == SbxEMPTY )

View File

@ -2772,13 +2772,13 @@ void SAL_CALL ChartView::setPropertyValue( const OUString& rPropertyName
throw lang::IllegalArgumentException( "Property 'SdrViewIsInEditMode' requires value of type sal_Bool", nullptr, 0 );
}
else
throw beans::UnknownPropertyException( "unknown property was tried to set to chart wizard", nullptr );
throw beans::UnknownPropertyException( "unknown property was tried to set to chart wizard " + rPropertyName, nullptr );
}
Any SAL_CALL ChartView::getPropertyValue( const OUString& rPropertyName )
{
if( rPropertyName != "Resolution" )
throw beans::UnknownPropertyException( "unknown property was tried to get from chart wizard", nullptr );
throw beans::UnknownPropertyException( "unknown property was tried to get from chart wizard " + rPropertyName, nullptr );
return Any(m_aPageResolution);
}

View File

@ -143,7 +143,7 @@ Property OPropertyArrayAggregationHelper::getPropertyByName( const OUString& _rP
const Property* pProperty = findPropertyByName( _rPropertyName );
if ( !pProperty )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
return *pProperty;
}
@ -739,7 +739,7 @@ css::beans::PropertyState SAL_CALL OPropertySetAggregationHelper::getPropertySta
if (nHandle == -1)
{
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(_rPropertyName);
}
OUString aPropName;
@ -762,7 +762,7 @@ void SAL_CALL OPropertySetAggregationHelper::setPropertyToDefault(const OUString
sal_Int32 nHandle = rPH.getHandleByName(_rPropertyName);
if (nHandle == -1)
{
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(_rPropertyName);
}
OUString aPropName;
@ -794,7 +794,7 @@ css::uno::Any SAL_CALL OPropertySetAggregationHelper::getPropertyDefault(const O
sal_Int32 nHandle = rPH.getHandleByName( aPropertyName );
if ( nHandle == -1 )
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(aPropertyName);
OUString aPropName;
sal_Int32 nOriginalHandle = -1;

View File

@ -169,7 +169,7 @@ namespace comphelper
void PropertyBag::getFastPropertyValue( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(_nHandle));
OPropertyContainerHelper::getFastPropertyValue( _out_rValue, _nHandle );
}
@ -178,7 +178,7 @@ namespace comphelper
bool PropertyBag::convertFastPropertyValue( sal_Int32 _nHandle, const Any& _rNewValue, Any& _out_rConvertedValue, Any& _out_rCurrentValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(_nHandle));
return const_cast< PropertyBag* >( this )->OPropertyContainerHelper::convertFastPropertyValue(
_out_rConvertedValue, _out_rCurrentValue, _nHandle, _rNewValue );
@ -188,7 +188,7 @@ namespace comphelper
void PropertyBag::setFastPropertyValue( sal_Int32 _nHandle, const Any& _rValue )
{
if ( !hasPropertyByHandle( _nHandle ) )
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(_nHandle));
OPropertyContainerHelper::setFastPropertyValue( _nHandle, _rValue );
}
@ -197,7 +197,7 @@ namespace comphelper
void PropertyBag::getPropertyDefaultByHandle( sal_Int32 _nHandle, Any& _out_rValue ) const
{
if ( !hasPropertyByHandle( _nHandle ) )
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(_nHandle));
MapInt2Any::const_iterator pos = m_pImpl->aDefaults.find( _nHandle );
OSL_ENSURE( pos != m_pImpl->aDefaults.end(), "PropertyBag::getPropertyDefaultByHandle: inconsistency!" );

View File

@ -93,7 +93,7 @@ void OPropertyContainerHelper::revokeProperty( sal_Int32 _nHandle )
{
PropertiesIterator aPos = searchHandle( _nHandle );
if ( aPos == m_aProperties.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(_nHandle));
m_aProperties.erase( aPos );
}

View File

@ -80,7 +80,7 @@ namespace comphelper
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
if (nHandle == -1)
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(_rsName);
return getPropertyStateByHandle(nHandle);
}
@ -92,7 +92,7 @@ namespace comphelper
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
if (nHandle == -1)
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(_rsName);
setPropertyToDefaultByHandle(nHandle);
}
@ -104,7 +104,7 @@ namespace comphelper
sal_Int32 nHandle = rPH.getHandleByName(_rsName);
if (nHandle == -1)
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(_rsName);
return getPropertyDefaultByHandle(nHandle);
}

View File

@ -109,7 +109,7 @@ Property OPropertySetHelperInfo_Impl::getPropertyByName( const OUString & Proper
sizeof( Property ),
compare_OUString_Property_Impl ));
if( !pR ) {
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
}
return *pR;
@ -295,7 +295,7 @@ void OPropertySetHelper::addPropertyChangeListener(
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
if( nHandle == -1 ) {
// property not known throw exception
throw UnknownPropertyException() ;
throw UnknownPropertyException(rPropertyName);
}
sal_Int16 nAttributes;
@ -338,7 +338,7 @@ void OPropertySetHelper::removePropertyChangeListener(
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
if( nHandle == -1 )
// property not known throw exception
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
aBoundLC.removeInterface( nHandle, rxListener );
}
else {
@ -371,7 +371,7 @@ void OPropertySetHelper::addVetoableChangeListener(
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
if( nHandle == -1 ) {
// property not known throw exception
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
}
sal_Int16 nAttributes;
@ -412,7 +412,7 @@ void OPropertySetHelper::removeVetoableChangeListener(
sal_Int32 nHandle = rPH.getHandleByName( rPropertyName );
if( nHandle == -1 ) {
// property not known throw exception
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
}
// remove the vetoable listener to the helper container
aVetoableLC.removeInterface( nHandle, rxListener );
@ -435,7 +435,7 @@ void OPropertySetHelper::setDependentFastPropertyValue( sal_Int32 i_handle, cons
IPropertyArrayHelper& rInfo = getInfoHelper();
if ( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, i_handle ) )
// unknown property
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(i_handle));
// no need to check for READONLY-ness of the property. The method is intended to be called internally, which
// implies it might be invoked for properties which are read-only to the instance's clients, but well allowed
@ -486,7 +486,7 @@ void OPropertySetHelper::setFastPropertyValue( sal_Int32 nHandle, const Any& rVa
sal_Int16 nAttributes;
if( !rInfo.fillPropertyMembersByHandle( nullptr, &nAttributes, nHandle ) ) {
// unknown property
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(nHandle));
}
if( nAttributes & PropertyAttribute::READONLY )
throw PropertyVetoException();
@ -548,7 +548,7 @@ Any OPropertySetHelper::getFastPropertyValue( sal_Int32 nHandle )
IPropertyArrayHelper & rInfo = getInfoHelper();
if( !rInfo.fillPropertyMembersByHandle( nullptr, nullptr, nHandle ) )
// unknown property
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(nHandle));
Any aRet;
MutexGuard aGuard( rBHelper.rMutex );
@ -1073,7 +1073,7 @@ Property OPropertyArrayHelper::getPropertyByName(const OUString& aPropertyName)
sizeof( Property ),
compare_OUString_Property_Impl ));
if( !pR ) {
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
}
return *pR;
}

View File

@ -715,7 +715,7 @@ void SAL_CALL SvxUnoTextField::setPropertyValue( const OUString& aPropertyName,
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( aPropertyName );
if ( !pMap )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch( pMap->nWID )
{
@ -770,7 +770,7 @@ uno::Any SAL_CALL SvxUnoTextField::getPropertyValue( const OUString& PropertyNam
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( PropertyName );
if ( !pMap )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
switch( pMap->nWID )
{

View File

@ -476,7 +476,7 @@ void SvxUnoTextRangeBase::_setPropertyValue( const OUString& PropertyName, const
}
}
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
void SvxUnoTextRangeBase::setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet )
@ -618,7 +618,7 @@ uno::Any SvxUnoTextRangeBase::_getPropertyValue(const OUString& PropertyName, sa
}
}
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
void SvxUnoTextRangeBase::getPropertyValue( const SfxItemPropertySimpleEntry* pMap, uno::Any& rAny, const SfxItemSet& rSet )
@ -1056,7 +1056,7 @@ uno::Sequence< beans::PropertyState > SvxUnoTextRangeBase::_getPropertyStates(co
const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry( rName );
if( !_getOnePropertyStates(pSet.get(), pMap, *pState++) )
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
}
}
@ -1172,7 +1172,7 @@ void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sa
}
}
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara )
@ -1258,7 +1258,7 @@ uno::Any SAL_CALL SvxUnoTextRangeBase::getPropertyDefault( const OUString& aProp
}
}
}
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
// beans::XMultiPropertyStates

View File

@ -619,7 +619,7 @@ Any BibliographyLoader::getPropertyValue(const OUString& rPropertyName)
ISBN_POS //BibliographyDataField_ISBN
};
if(rPropertyName != "BibliographyDataFieldNames")
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
Sequence<PropertyValue> aSeq(COLUMN_COUNT);
PropertyValue* pArray = aSeq.getArray();
BibConfig* pConfig = BibModul::GetConfig();

View File

@ -996,7 +996,7 @@ namespace pcr
{
EventMap::const_iterator pos = m_aEvents.find( _rPropertyName );
if ( pos == m_aEvents.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
return pos->second;
}

View File

@ -338,7 +338,7 @@ namespace pcr
{
::osl::MutexGuard aGuard( m_aMutex );
if ( !m_xComponent.is() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
return m_xComponent->getPropertyValue( _rPropertyName );
}
@ -347,7 +347,7 @@ namespace pcr
{
::osl::MutexGuard aGuard( m_aMutex );
if ( !m_xComponent.is() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
m_xComponent->setPropertyValue( _rPropertyName, _rValue );
}
@ -367,7 +367,7 @@ namespace pcr
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
if ( pos == m_aProperties.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
Any aPropertyValue;
if ( !_rControlValue.hasValue() )
@ -393,7 +393,7 @@ namespace pcr
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
if ( pos == m_aProperties.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
Any aControlValue;
if ( !_rPropertyValue.hasValue() )
@ -553,7 +553,7 @@ namespace pcr
PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
if ( pos == m_aProperties.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
LineDescriptor aDescriptor;
aDescriptor.DisplayName = _rPropertyName;

View File

@ -290,7 +290,7 @@ namespace pcr
FindPropertyByName( _rPropertyName )
);
if ( pFound == m_aSupportedProperties.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
return *pFound;
}
@ -319,7 +319,7 @@ namespace pcr
{
PropertyId nPropId = m_pInfoService->getPropertyId( _rPropertyName );
if ( nPropId == -1 )
throw UnknownPropertyException();
throw UnknownPropertyException(_rPropertyName);
return nPropId;
}

View File

@ -406,7 +406,7 @@ void UpdateCheckUI::setPropertyValue(const OUString& rPropertyName,
}
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
if ( mbBubbleChanged && mpBubbleWin )
mpBubbleWin->Show( false );
@ -432,7 +432,7 @@ uno::Any UpdateCheckUI::getPropertyValue(const OUString& rPropertyName)
else if( rPropertyName == PROPERTY_SHOW_MENUICON )
aRet <<= mbShowMenuIcon;
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
return aRet;
}

View File

@ -220,7 +220,7 @@ Any SAL_CALL ConstItemContainer::getPropertyValue( const OUString& PropertyName
if ( PropertyName == PROPNAME_UINAME )
return makeAny( m_aUIName );
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
}
void SAL_CALL ConstItemContainer::addPropertyChangeListener( const OUString&, const css::uno::Reference< css::beans::XPropertyChangeListener >& )
@ -252,7 +252,7 @@ Any SAL_CALL ConstItemContainer::getFastPropertyValue( sal_Int32 nHandle )
if ( nHandle == PROPHANDLE_UINAME )
return makeAny( m_aUIName );
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(nHandle));
}
::cppu::IPropertyArrayHelper& ConstItemContainer::getInfoHelper()

View File

@ -1869,7 +1869,7 @@ void SAL_CALL XFrameImpl::setPropertyValue(const OUString& sProperty,
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
css::beans::Property aPropInfo = pIt->second;
@ -1904,7 +1904,7 @@ css::uno::Any SAL_CALL XFrameImpl::getPropertyValue(const OUString& sProperty)
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
css::beans::Property aPropInfo = pIt->second;
@ -1923,7 +1923,7 @@ void SAL_CALL XFrameImpl::addPropertyChangeListener(
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
}
// <- SAFE
@ -1940,7 +1940,7 @@ void SAL_CALL XFrameImpl::removePropertyChangeListener(
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
}
// <- SAFE
@ -1959,7 +1959,7 @@ void SAL_CALL XFrameImpl::addVetoableChangeListener(
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
}
// <- SAFE
@ -1976,7 +1976,7 @@ void SAL_CALL XFrameImpl::removeVetoableChangeListener(
TPropInfoHash::const_iterator pIt = m_lProps.find(sProperty);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sProperty);
}
// <- SAFE
@ -2008,7 +2008,7 @@ css::beans::Property SAL_CALL XFrameImpl::getPropertyByName(const OUString& sNam
TPropInfoHash::const_iterator pIt = m_lProps.find(sName);
if (pIt == m_lProps.end())
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sName);
return pIt->second;
}

View File

@ -125,7 +125,7 @@ uno::Any SAL_CALL ColorPropertySet::getPropertyValue( const OUString& aPropertyN
else if (aPropertyName == m_aColorPropName)
return uno::makeAny( m_nColor );
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
}
void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ )

View File

@ -139,7 +139,7 @@ Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName
{
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
if( aIt == maPropMap.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
return aIt->second;
}
@ -169,7 +169,7 @@ Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rProper
{
PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName );
if( aIt == maPropMap.end() )
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
Property aProperty;
aProperty.Name = aIt->first;
aProperty.Handle = 0;

View File

@ -509,7 +509,7 @@ void SAL_CALL OInputCompStream::setPropertyValue( const OUString& aPropertyName,
[&aPropertyName](const beans::PropertyValue& rProp) { return rProp.Name == aPropertyName; }))
throw beans::PropertyVetoException(); // TODO
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
}
uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
@ -529,7 +529,7 @@ uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
aPropertyName = aProp;
if ( aPropertyName == "RelationsInfo" )
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
// all the provided properties are accessible
auto pProp = std::find_if(std::cbegin(m_aProperties), std::cend(m_aProperties),
@ -537,7 +537,7 @@ uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
if (pProp != std::cend(m_aProperties))
return pProp->Value;
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
}
void SAL_CALL OInputCompStream::addPropertyChangeListener(

View File

@ -2878,7 +2878,7 @@ void SAL_CALL OWriteStream::setPropertyValue( const OUString& aPropertyName, con
aValue >>= m_pImpl->m_nRelId;
}
else
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
m_pImpl->m_bHasDataToFlush = true;
ModifyParentUnlockMutex_Impl( aGuard );
@ -2937,7 +2937,7 @@ uno::Any SAL_CALL OWriteStream::getPropertyValue( const OUString& aProp )
return uno::makeAny( m_xSeekable->getLength() );
}
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
}
void SAL_CALL OWriteStream::addPropertyChangeListener(

View File

@ -4367,7 +4367,7 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
throw uno::RuntimeException( THROW_WHERE ); // TODO: Access denied
if ( m_pData->m_nStorageType == embed::StorageFormats::ZIP )
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
else if ( m_pData->m_nStorageType == embed::StorageFormats::PACKAGE )
{
if ( aPropertyName == "MediaType" )
@ -4400,7 +4400,7 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
|| aPropertyName == MEDIATYPE_FALLBACK_USED_PROPERTY )
throw beans::PropertyVetoException( THROW_WHERE );
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
}
else if ( m_pData->m_nStorageType == embed::StorageFormats::OFOPXML )
{
@ -4439,10 +4439,10 @@ void SAL_CALL OStorage::setPropertyValue( const OUString& aPropertyName, const u
|| aPropertyName == "IsRoot" )
throw beans::PropertyVetoException( THROW_WHERE );
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
}
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
BroadcastModifiedIfNecessary();
}
@ -4538,7 +4538,7 @@ uno::Any SAL_CALL OStorage::getPropertyValue( const OUString& aPropertyName )
}
}
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException(aPropertyName);
}
void SAL_CALL OStorage::addPropertyChangeListener(

View File

@ -1729,7 +1729,7 @@ uno::Reference< XPropertySetInfo > SAL_CALL ZipPackage::getPropertySetInfo()
void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const Any& aValue )
{
if ( m_nFormat != embed::StorageFormats::PACKAGE )
throw UnknownPropertyException(THROW_WHERE );
throw UnknownPropertyException(aPropertyName);
if (aPropertyName == HAS_ENCRYPTED_ENTRIES_PROPERTY
||aPropertyName == HAS_NONENCRYPTED_ENTRIES_PROPERTY
@ -1833,7 +1833,7 @@ void SAL_CALL ZipPackage::setPropertyValue( const OUString& aPropertyName, const
m_nChecksumDigestID = xml::crypto::DigestID::SHA512_1K;
}
else
throw UnknownPropertyException(THROW_WHERE );
throw UnknownPropertyException(aPropertyName);
}
Any SAL_CALL ZipPackage::getPropertyValue( const OUString& PropertyName )
@ -1878,7 +1878,7 @@ Any SAL_CALL ZipPackage::getPropertyValue( const OUString& PropertyName )
{
return Any(m_bMediaTypeFallbackUsed);
}
throw UnknownPropertyException(THROW_WHERE );
throw UnknownPropertyException(PropertyName);
}
void SAL_CALL ZipPackage::addPropertyChangeListener( const OUString& /*aPropertyName*/, const uno::Reference< XPropertyChangeListener >& /*xListener*/ )
{

View File

@ -377,7 +377,7 @@ void SAL_CALL ZipPackageFolder::setPropertyValue( const OUString& aPropertyName,
else if ( aPropertyName == "Size" )
aValue >>= aEntry.nSize;
else
throw UnknownPropertyException(THROW_WHERE );
throw UnknownPropertyException(aPropertyName);
}
uno::Any SAL_CALL ZipPackageFolder::getPropertyValue( const OUString& PropertyName )
{
@ -394,7 +394,7 @@ uno::Any SAL_CALL ZipPackageFolder::getPropertyValue( const OUString& PropertyNa
else if ( PropertyName == "Size" )
return uno::makeAny ( aEntry.nSize );
else
throw UnknownPropertyException(THROW_WHERE );
throw UnknownPropertyException(PropertyName);
}
void ZipPackageFolder::doInsertByName ( ZipPackageEntry *pEntry, bool bSetParent )

View File

@ -1271,7 +1271,7 @@ void SAL_CALL ZipPackageStream::setPropertyValue( const OUString& aPropertyName,
m_bCompressedIsSetFromOutside = true;
}
else
throw beans::UnknownPropertyException(THROW_WHERE );
throw beans::UnknownPropertyException(aPropertyName);
}
Any SAL_CALL ZipPackageStream::getPropertyValue( const OUString& PropertyName )
@ -1305,7 +1305,7 @@ Any SAL_CALL ZipPackageStream::getPropertyValue( const OUString& PropertyName )
return Any(m_aStorageEncryptionKeys);
}
else
throw beans::UnknownPropertyException(THROW_WHERE );
throw beans::UnknownPropertyException(PropertyName);
}
void ZipPackageStream::setSize ( const sal_Int64 nNewSize )

View File

@ -853,7 +853,7 @@ uno::Reference< beans::XPropertySetInfo> SAL_CALL
void SAL_CALL PivotTableDataProvider::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue)
{
if (rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
if (!(rValue >>= m_bIncludeHiddenCells))
throw lang::IllegalArgumentException();
@ -870,7 +870,7 @@ uno::Any SAL_CALL PivotTableDataProvider::getPropertyValue(const OUString& rProp
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
return aRet;
}

View File

@ -220,7 +220,7 @@ void SAL_CALL PivotTableDataSequence::setPropertyValue(const OUString& rProperty
|| rPropertyName == SC_UNONAME_HAS_STRING_LABEL)
{}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
}
uno::Any SAL_CALL PivotTableDataSequence::getPropertyValue(const OUString& rPropertyName)
@ -244,7 +244,7 @@ uno::Any SAL_CALL PivotTableDataSequence::getPropertyValue(const OUString& rProp
aReturn <<= false;
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
return aReturn;
}

View File

@ -204,7 +204,7 @@ void SAL_CALL ScAddressConversionObj::setPropertyValue( const OUString& aPropert
}
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if ( !bSuccess )
throw lang::IllegalArgumentException();
@ -270,7 +270,7 @@ uno::Any SAL_CALL ScAddressConversionObj::getPropertyValue( const OUString& aPro
aRet <<= aFormatStr;
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
return aRet;
}

View File

@ -2219,7 +2219,7 @@ void SAL_CALL ScCellRangesBase::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
SetOnePropertyValue( pEntry, aValue );
}
@ -2431,7 +2431,7 @@ uno::Any SAL_CALL ScCellRangesBase::getPropertyValue( const OUString& aPropertyN
const SfxItemPropertyMap& rPropertyMap = GetItemPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
GetOnePropertyValue( pEntry, aAny );

View File

@ -2229,7 +2229,7 @@ void SAL_CALL ScChart2DataProvider::setPropertyValue(
const OUString& rPropertyName, const uno::Any& rValue)
{
if ( rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
if ( !(rValue >>= m_bIncludeHiddenCells))
throw lang::IllegalArgumentException();
@ -2248,7 +2248,7 @@ uno::Any SAL_CALL ScChart2DataProvider::getPropertyValue(
aRet <<= m_pDocument->PastingDrawFromOtherDoc();
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
return aRet;
}
@ -3272,7 +3272,7 @@ void SAL_CALL ScChart2DataSequence::setPropertyValue(
mbTimeBased = bTimeBased;
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
// TODO: support optional properties
}
@ -3307,7 +3307,7 @@ uno::Any SAL_CALL ScChart2DataSequence::getPropertyValue(const OUString& rProper
aRet <<= bHasStringLabel;
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
// TODO: support optional properties
return aRet;
}

View File

@ -563,7 +563,7 @@ void SAL_CALL ScCondFormatObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -601,7 +601,7 @@ uno::Any SAL_CALL ScCondFormatObj::getPropertyValue( const OUString& aPropertyNa
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
switch(pEntry->nWID)
@ -703,7 +703,7 @@ void SAL_CALL ScConditionEntryObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -766,7 +766,7 @@ uno::Any SAL_CALL ScConditionEntryObj::getPropertyValue( const OUString& aProper
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
switch(pEntry->nWID)
@ -910,7 +910,7 @@ void SAL_CALL ScColorScaleFormatObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -944,7 +944,7 @@ uno::Any SAL_CALL ScColorScaleFormatObj::getPropertyValue( const OUString& aProp
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
@ -1160,7 +1160,7 @@ void SAL_CALL ScDataBarFormatObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -1284,7 +1284,7 @@ uno::Any SAL_CALL ScDataBarFormatObj::getPropertyValue( const OUString& aPropert
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
switch(pEntry->nWID)
@ -1535,7 +1535,7 @@ void SAL_CALL ScIconSetFormatObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -1606,7 +1606,7 @@ uno::Any SAL_CALL ScIconSetFormatObj::getPropertyValue( const OUString& aPropert
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
@ -1800,7 +1800,7 @@ void SAL_CALL ScCondDateFormatObj::setPropertyValue(
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch(pEntry->nWID)
{
@ -1842,7 +1842,7 @@ uno::Any SAL_CALL ScCondDateFormatObj::getPropertyValue( const OUString& aProper
const SfxItemPropertyMap& rPropertyMap = maPropSet.getPropertyMap(); // from derived class
const SfxItemPropertySimpleEntry* pEntry = rPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;

View File

@ -407,7 +407,7 @@ void SAL_CALL ScDocumentConfiguration::setPropertyValue(
else if ( aPropertyName == SC_UNO_RASTERSYNC )
aGridOpt.SetSynchronize( ScUnoHelpFunctions::GetBoolFromAny( aValue ) );
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
aViewOpt.SetGridOptions(aGridOpt);
}
rDoc.SetViewOptions(aViewOpt);
@ -608,7 +608,7 @@ uno::Any SAL_CALL ScDocumentConfiguration::getPropertyValue( const OUString& aPr
else if ( aPropertyName == SC_UNO_RASTERSYNC )
aRet <<= aGridOpt.GetSynchronize();
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}

View File

@ -866,7 +866,7 @@ void SAL_CALL ScDataPilotDescriptorBase::setPropertyValue( const OUString& aProp
}
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
pDPObject->SetSaveData( aNewData );
}
@ -973,7 +973,7 @@ Any SAL_CALL ScDataPilotDescriptorBase::getPropertyValue( const OUString& aPrope
}
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
}
}

View File

@ -124,7 +124,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyValue(
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if(!pEntry->nWID)
{
if(aPropertyName ==SC_UNO_STANDARDDEC)
@ -206,7 +206,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyValue( const OUString& aPropertyN
uno::Any aRet;
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if (!pEntry->nWID)
{
@ -251,7 +251,7 @@ beans::PropertyState SAL_CALL ScDocDefaultsObj::getPropertyState( const OUString
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
beans::PropertyState eRet = beans::PropertyState_DEFAULT_VALUE;
@ -296,7 +296,7 @@ void SAL_CALL ScDocDefaultsObj::setPropertyToDefault( const OUString& aPropertyN
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if (pEntry->nWID)
{
@ -318,7 +318,7 @@ uno::Any SAL_CALL ScDocDefaultsObj::getPropertyDefault( const OUString& aPropert
const SfxItemPropertySimpleEntry* pEntry = aPropertyMap.getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aRet;
if (pEntry->nWID)

View File

@ -653,7 +653,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno::
pURL->SetTargetFrame(aStrVal);
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
pEditEngine->QuickInsertField( SvxFieldItem(*pField, EE_FEATURE_FIELD), aSelection );
mpEditSource->UpdateData();
@ -678,7 +678,7 @@ void ScEditFieldObj::setPropertyValueURL(const OUString& rName, const css::uno::
rData.SetTargetFrame(aStrVal);
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
@ -712,7 +712,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
else if (rName == SC_UNONAME_TARGET)
aRet <<= pURL->GetTargetFrame();
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
else // not inserted yet
{
@ -725,7 +725,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
else if (rName == SC_UNONAME_TARGET)
aRet <<= rURL.GetTargetFrame();
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
return aRet;
}
@ -733,7 +733,7 @@ uno::Any ScEditFieldObj::getPropertyValueURL(const OUString& rName)
void ScEditFieldObj::setPropertyValueFile(const OUString& rName, const uno::Any& rVal)
{
if (rName != SC_UNONAME_FILEFORM)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
sal_Int16 nIntVal = 0;
if (rVal >>= nIntVal)
@ -767,7 +767,7 @@ uno::Any ScEditFieldObj::getPropertyValueFile(const OUString& rName)
{
uno::Any aRet;
if (rName != SC_UNONAME_FILEFORM)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
SvxFileFormat eFormat = SvxFileFormat::NameAndExt;
const SvxFieldData* pField = nullptr;
@ -830,7 +830,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
p->SetFormat(static_cast<SvxDateFormat>(mnNumFormat));
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
break;
case text::textfield::Type::TIME:
@ -838,7 +838,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
// SvxTimeField doesn't have any attributes.
if (rName != SC_UNONAME_ISDATE && rName != SC_UNONAME_ISFIXED &&
rName != SC_UNONAME_DATETIME && rName != SC_UNONAME_NUMFMT)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
break;
case text::textfield::Type::EXTENDED_TIME:
@ -865,11 +865,11 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
p->SetFormat(static_cast<SvxTimeFormat>(mnNumFormat));
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
break;
default:
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
}
else
@ -883,7 +883,7 @@ void ScEditFieldObj::setPropertyValueDateTime(const OUString& rName, const uno::
else if (rName == SC_UNONAME_NUMFMT)
mnNumFormat = rVal.get<sal_Int32>();
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
}
@ -989,7 +989,7 @@ uno::Any ScEditFieldObj::getPropertyValueDateTime(const OUString& rName)
return uno::makeAny(mnNumFormat);
}
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
}
void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any& rVal)
@ -1014,7 +1014,7 @@ void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any
SvxTableField* p = static_cast<SvxTableField*>(pField);
if (rName != SC_UNONAME_TABLEPOS)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
sal_Int32 nTab = rVal.get<sal_Int32>();
p->SetTab(nTab);
@ -1028,7 +1028,7 @@ void ScEditFieldObj::setPropertyValueSheet(const OUString& rName, const uno::Any
// Edit engine instance not yet present. Store the item data for later use.
SvxTableField& r = static_cast<SvxTableField&>(getData());
if (rName != SC_UNONAME_TABLEPOS)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rName);
sal_Int32 nTab = rVal.get<sal_Int32>();
r.SetTab(nTab);
@ -1226,7 +1226,7 @@ void SAL_CALL ScEditFieldObj::setPropertyValue(
break;
case text::textfield::Type::DOCINFO_TITLE:
default:
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(OUString::number(meType));
}
}
@ -1272,7 +1272,7 @@ uno::Any SAL_CALL ScEditFieldObj::getPropertyValue( const OUString& aPropertyNam
return getPropertyValueDateTime(aPropertyName);
case text::textfield::Type::DOCINFO_TITLE:
default:
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(OUString::number(meType));
}
}

View File

@ -246,7 +246,7 @@ void SAL_CALL ScFunctionAccess::setPropertyValue(
bool bDone = ScDocOptionsHelper::setPropertyValue( *pOptions, aPropertyMap, aPropertyName, aValue );
if (!bDone)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
}

View File

@ -1201,7 +1201,7 @@ void SAL_CALL ScStyleObj::setPropertyToDefault( const OUString& aPropertyName )
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
setPropertyValue_Impl( aPropertyName, pEntry, nullptr );
}
@ -1438,7 +1438,7 @@ void SAL_CALL ScStyleObj::setPropertyValue( const OUString& aPropertyName, const
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( aPropertyName );
if ( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
setPropertyValue_Impl( aPropertyName, pEntry, &aValue );
}

View File

@ -227,7 +227,7 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
throw lang::IllegalArgumentException();
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropertyName )
@ -259,7 +259,7 @@ uno::Any SAL_CALL ScFormulaParserObj::getPropertyValue( const OUString& aPropert
aRet <<= maExternalLinks;
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
return aRet;
}

View File

@ -702,7 +702,7 @@ void SAL_CALL ShutdownIcon::setFastPropertyValue( ::sal_Int32
break;
default :
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(OUString::number(nHandle));
}
}
@ -720,7 +720,7 @@ css::uno::Any SAL_CALL ShutdownIcon::getFastPropertyValue( ::sal_Int32 nHandle )
break;
default :
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(OUString::number(nHandle));
}
return aValue;

View File

@ -242,7 +242,7 @@ void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, cons
{
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
if( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
switch( pEntry->nWID )
{
case WID_FRAME_URL:
@ -322,7 +322,7 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName)
{
const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName );
if( !pEntry )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
uno::Any aAny;
switch( pEntry->nWID )
{

View File

@ -425,11 +425,11 @@ Any SAL_CALL Theme::getPropertyValue (
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const ThemeItem eItem (iId->second);
@ -445,11 +445,11 @@ void SAL_CALL Theme::addPropertyChangeListener(
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
eItem = iId->second;
}
@ -467,11 +467,11 @@ void SAL_CALL Theme::removePropertyChangeListener(
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
eItem = iId->second;
}
@ -499,11 +499,11 @@ void SAL_CALL Theme::addVetoableChangeListener(
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
eItem = iId->second;
}
@ -521,11 +521,11 @@ void SAL_CALL Theme::removeVetoableChangeListener(
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
eItem = iId->second;
}
@ -572,11 +572,11 @@ beans::Property SAL_CALL Theme::getPropertyByName (const OUString& rsPropertyNam
{
PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName));
if (iId == maPropertyNameToIdMap.end())
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const PropertyType eType (GetPropertyType(iId->second));
if (eType == PT_Invalid)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rsPropertyName);
const ThemeItem eItem (iId->second);

View File

@ -1003,7 +1003,7 @@ void SAL_CALL FSStorage::setPropertyValue( const OUString& aPropertyName, const
if ( aPropertyName == "URL" || aPropertyName == "OpenMode" )
throw beans::PropertyVetoException(); // TODO
else
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
}
@ -1019,7 +1019,7 @@ uno::Any SAL_CALL FSStorage::getPropertyValue( const OUString& aPropertyName )
else if ( aPropertyName == "OpenMode" )
return uno::makeAny( m_pImpl->m_nMode );
throw beans::UnknownPropertyException(); // TODO
throw beans::UnknownPropertyException(aPropertyName); // TODO
}

View File

@ -107,7 +107,7 @@ beans::Property SfxItemPropertyMap::getPropertyByName( const OUString & rName )
{
SfxItemPropertyHashMap_t::const_iterator aIter = m_pImpl->find(rName);
if( aIter == m_pImpl->end() )
throw UnknownPropertyException();
throw UnknownPropertyException(rName);
const SfxItemPropertySimpleEntry* pEntry = &aIter->second;
beans::Property aProp;
aProp.Name = rName;
@ -191,7 +191,7 @@ void SfxItemPropertySet::getPropertyValue( const OUString &rName,
// detect which-id
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
if ( !pEntry )
throw UnknownPropertyException();
throw UnknownPropertyException(rName);
getPropertyValue( *pEntry,rSet, rAny );
}
@ -235,7 +235,7 @@ void SfxItemPropertySet::setPropertyValue( const OUString &rName,
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
if ( !pEntry )
{
throw UnknownPropertyException();
throw UnknownPropertyException(rName);
}
setPropertyValue(*pEntry, aVal, rSet);
}
@ -264,7 +264,7 @@ PropertyState SfxItemPropertySet::getPropertyState(const OUString& rName, cons
const SfxItemPropertySimpleEntry* pEntry = m_aMap.getByName( rName );
if( !pEntry || !pEntry->nWID )
{
throw UnknownPropertyException();
throw UnknownPropertyException(rName);
}
sal_uInt16 nWhich = pEntry->nWID;

View File

@ -694,7 +694,7 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
aRet <<= OUString();
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
return aRet;
}
@ -847,7 +847,7 @@ void SAL_CALL SvNumberFormatSettingsObj::setPropertyValue( const OUString& aProp
pFormatter->SetYear2000( nInt16 );
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
@ -874,7 +874,7 @@ uno::Any SAL_CALL SvNumberFormatSettingsObj::getPropertyValue( const OUString& a
else if (aPropertyName == PROPERTYNAME_TWODIGIT)
aRet <<= static_cast<sal_Int16>( pFormatter->GetYear2000() );
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
return aRet;
}

View File

@ -1466,7 +1466,7 @@ PropertyState SAL_CALL Cell::getPropertyState( const OUString& PropertyName )
}
return eState;
}
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
}

View File

@ -2114,7 +2114,7 @@ void SAL_CALL SwChartDataSequence::setPropertyValue(
throw lang::DisposedException();
if (rPropertyName != UNO_NAME_ROLE)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
if ( !(rValue >>= m_aRole) )
throw lang::IllegalArgumentException();
@ -2128,7 +2128,7 @@ uno::Any SAL_CALL SwChartDataSequence::getPropertyValue(
throw lang::DisposedException();
if (!(rPropertyName == UNO_NAME_ROLE))
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
return uno::Any(m_aRole);
}

View File

@ -459,7 +459,7 @@ SwXReferenceMark::getPropertyValue(const OUString& rPropertyName)
uno::Any aRet;
if (! ::sw::GetDefaultTextContentValue(aRet, rPropertyName))
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
}
return aRet;
}
@ -1359,7 +1359,7 @@ SwXMetaField::setPropertyValue(
}
else
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
}
}
@ -1385,7 +1385,7 @@ SwXMetaField::getPropertyValue(const OUString& rPropertyName)
}
else
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
}
return any;

View File

@ -2139,7 +2139,7 @@ void SwXNumberingRules::setPropertyValue( const OUString& rPropertyName, const A
throw IllegalArgumentException();
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
if(pDocRule)
{
@ -2189,7 +2189,7 @@ Any SwXNumberingRules::getPropertyValue( const OUString& rPropertyName )
aRet <<= pRule->GetDefaultListId();
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
return aRet;
}

View File

@ -83,7 +83,7 @@ void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::Property
auto aIt = std::find_if(aPropertyEntries.begin(), aPropertyEntries.end(),
[&sName](const SfxItemPropertyNamedEntry& rProp) { return rProp.sName == sName; });
if( aIt == aPropertyEntries.end() )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(sName);
auto nIndex = static_cast<sal_uInt32>(std::distance(aPropertyEntries.begin(), aIt));
pValueArr[nIndex].reset( new beans::PropertyValue(rSearchAttrib) );
}

View File

@ -4497,7 +4497,7 @@ css::uno::Any SAL_CALL SwXTextTableStyle::getPropertyValue(const OUString& rProp
else if (rPropertyName == UNO_NAME_DISPLAY_NAME)
return uno::makeAny(m_pTableAutoFormat->GetName());
else
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
return uno::makeAny(bIsRow ? OUString("row") : OUString("column"));
}
@ -5020,7 +5020,7 @@ void SAL_CALL SwXTextCellStyle::setPropertyValue(const OUString& rPropertyName,
}
}
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
}
css::uno::Any SAL_CALL SwXTextCellStyle::getPropertyValue(const OUString& rPropertyName)
@ -5184,7 +5184,7 @@ css::uno::Any SAL_CALL SwXTextCellStyle::getPropertyValue(const OUString& rPrope
}
}
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
}
void SAL_CALL SwXTextCellStyle::addPropertyChangeListener( const OUString& /*aPropertyName*/, const css::uno::Reference< css::beans::XPropertyChangeListener >& /*xListener*/ )
@ -5360,7 +5360,7 @@ css::uno::Sequence<css::beans::PropertyState> SAL_CALL SwXTextCellStyle::getProp
else
{
SAL_WARN("sw.uno", "SwXTextCellStyle unknown property:" + sPropName);
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(sPropName);
}
}
return aRet;

View File

@ -926,7 +926,7 @@ void SwXDocumentSettings::_setSingleValue( const comphelper::PropertyInfo & rInf
}
break;
default:
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
}
}
@ -1382,7 +1382,7 @@ void SwXDocumentSettings::_getSingleValue( const comphelper::PropertyInfo & rInf
}
break;
default:
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
}
}

View File

@ -586,7 +586,7 @@ void SwXAutoTextGroup::setPropertyValue(
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName );
if(!pEntry)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
if(!pGlosGroup || pGlosGroup->GetError())
@ -614,7 +614,7 @@ uno::Any SwXAutoTextGroup::getPropertyValue(const OUString& rPropertyName)
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(rPropertyName);
std::unique_ptr<SwTextBlocks> pGlosGroup(pGlossaries ? pGlossaries->GetGroupDoc(m_sGroupName) : nullptr);
if(!pGlosGroup || pGlosGroup->GetError())
throw uno::RuntimeException();

View File

@ -869,7 +869,7 @@ void SAL_CALL SwXMailMerge::setPropertyValue(
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
else if (pCur->nFlags & PropertyAttribute::READONLY)
throw PropertyVetoException();
else
@ -1024,7 +1024,7 @@ uno::Any SAL_CALL SwXMailMerge::getPropertyValue(
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
switch (pCur->nWID)
{
@ -1075,7 +1075,7 @@ void SAL_CALL SwXMailMerge::addPropertyChangeListener(
{
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
m_aPropListeners.addInterface( pCur->nWID, rListener );
}
}
@ -1089,7 +1089,7 @@ void SAL_CALL SwXMailMerge::removePropertyChangeListener(
{
const SfxItemPropertySimpleEntry* pCur = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pCur)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
m_aPropListeners.removeInterface( pCur->nWID, rListener );
}
}

View File

@ -392,7 +392,7 @@ void SwXPrintSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo,
}
break;
default:
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
}
}
@ -487,7 +487,7 @@ void SwXPrintSettings::_getSingleValue( const comphelper::PropertyInfo & rInfo,
}
break;
default:
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
}
}
@ -750,7 +750,7 @@ void SwXViewSettings::_setSingleValue( const comphelper::PropertyInfo & rInfo, c
}
break;
default:
throw UnknownPropertyException();
throw UnknownPropertyException(OUString::number(rInfo.mnHandle));
}
}

View File

@ -1840,7 +1840,7 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, const Any&
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
if(pEntry->nFlags & PropertyAttribute::READONLY)
throw PropertyVetoException();
switch(pEntry->nWID)
@ -2016,7 +2016,7 @@ Any SwXTextDocument::getPropertyValue(const OUString& rPropertyName)
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
Any aAny;
switch(pEntry->nWID)
{
@ -2261,7 +2261,7 @@ PropertyState SAL_CALL SwXTextDocument::getPropertyState( const OUString& rPrope
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
return PropertyState_DIRECT_VALUE;
}
@ -2284,7 +2284,7 @@ void SAL_CALL SwXTextDocument::setPropertyToDefault( const OUString& rPropertyNa
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
switch(pEntry->nWID)
{
case 0:default:break;
@ -2299,7 +2299,7 @@ Any SAL_CALL SwXTextDocument::getPropertyDefault( const OUString& rPropertyName
const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName);
if(!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
Any aAny;
switch(pEntry->nWID)
{
@ -4135,9 +4135,9 @@ Reference< XPropertySetInfo > SwXLinkNameAccessWrapper::getPropertySetInfo()
}
void SwXLinkNameAccessWrapper::setPropertyValue(
const OUString& , const Any& )
const OUString& rPropName, const Any& )
{
throw UnknownPropertyException();
throw UnknownPropertyException(rPropName);
}
static Any lcl_GetDisplayBitmap(const OUString& _sLinkSuffix)
@ -4182,7 +4182,7 @@ Any SwXLinkNameAccessWrapper::getPropertyValue(const OUString& rPropertyName)
aRet = lcl_GetDisplayBitmap(sLinkSuffix);
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
return aRet;
}
@ -4240,15 +4240,15 @@ Reference< XPropertySetInfo > SwXOutlineTarget::getPropertySetInfo()
}
void SwXOutlineTarget::setPropertyValue(
const OUString& /*PropertyName*/, const Any& /*aValue*/)
const OUString& rPropertyName, const Any& /*aValue*/)
{
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
}
Any SwXOutlineTarget::getPropertyValue(const OUString& rPropertyName)
{
if(rPropertyName != UNO_LINK_DISPLAY_NAME)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
return Any(sOutlineText);
}

View File

@ -730,7 +730,7 @@ void SAL_CALL SwXTextView::setPropertyValue(
SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
else if (pEntry->nFlags & PropertyAttribute::READONLY)
throw PropertyVetoException();
else
@ -767,7 +767,7 @@ uno::Any SAL_CALL SwXTextView::getPropertyValue(
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap().getByName( rPropertyName );
if (!pEntry)
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
sal_Int16 nWID = pEntry->nWID;
switch (nWID)

View File

@ -1246,7 +1246,7 @@ void UnoControlModel::setPropertyValue( const OUString& rPropertyName, const css
DBG_ASSERT( nPropId, "Invalid ID in UnoControlModel::setPropertyValue" );
}
if( !nPropId )
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
setFastPropertyValue( nPropId, rValue );

View File

@ -533,14 +533,11 @@ Sequence< Property > SAL_CALL CCRS_PropertySetInfo
Property SAL_CALL CCRS_PropertySetInfo
::getPropertyByName( const OUString& aName )
{
if ( aName.isEmpty() )
throw UnknownPropertyException();
Property aProp;
if ( impl_queryProperty( aName, aProp ) )
return aProp;
throw UnknownPropertyException();
throw UnknownPropertyException(aName);
}
//virtual

View File

@ -685,7 +685,7 @@ void SAL_CALL ContentResultSetWrapper::removeVetoableChangeListener( const OUStr
if( !rPropertyName.isEmpty() )
{
if( !getPropertySetInfo().is() )
throw UnknownPropertyException();
throw UnknownPropertyException(rPropertyName);
m_xPropertySetInfo->getPropertyByName( rPropertyName );
//throws UnknownPropertyException, if so

View File

@ -231,7 +231,7 @@ Property SAL_CALL UcbPropertiesManager::getPropertyByName( const OUString& aName
if ( queryProperty( aName, aProp ) )
return aProp;
throw UnknownPropertyException();
throw UnknownPropertyException(aName);
}

View File

@ -1184,9 +1184,6 @@ Reference< XPropertySetInfo > SAL_CALL PersistentPropertySet::getPropertySetInfo
void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aPropertyName,
const Any& aValue )
{
if ( aPropertyName.isEmpty() )
throw UnknownPropertyException();
osl::ClearableGuard< osl::Mutex > aCGuard( m_pImpl->m_aMutex );
Reference< XHierarchicalNameAccess > xRootHierNameAccess(
@ -1277,7 +1274,7 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty
}
}
throw UnknownPropertyException();
throw UnknownPropertyException(aPropertyName);
}
@ -1285,9 +1282,6 @@ void SAL_CALL PersistentPropertySet::setPropertyValue( const OUString& aProperty
Any SAL_CALL PersistentPropertySet::getPropertyValue(
const OUString& PropertyName )
{
if ( PropertyName.isEmpty() )
throw UnknownPropertyException();
osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex );
Reference< XHierarchicalNameAccess > xNameAccess(
@ -1304,11 +1298,11 @@ Any SAL_CALL PersistentPropertySet::getPropertyValue(
}
catch (const NoSuchElementException&)
{
throw UnknownPropertyException();
throw UnknownPropertyException(aFullPropName);
}
}
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
}
@ -1581,7 +1575,7 @@ void SAL_CALL PersistentPropertySet::removeProperty( const OUString& Name )
// Property in set?
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
throw UnknownPropertyException();
throw UnknownPropertyException(aFullPropName);
// Property removable?
try
@ -2237,7 +2231,7 @@ Property SAL_CALL PropertySetInfo_Impl::getPropertyByName(
// Does property exist?
if ( !xRootHierNameAccess->hasByHierarchicalName( aFullPropName ) )
throw UnknownPropertyException();
throw UnknownPropertyException(aFullPropName);
try
{

View File

@ -771,7 +771,7 @@ void SAL_CALL SortedResultSet::setPropertyValue(
if ( PropertyName == "RowCount" || PropertyName == "IsRowCountFinal" )
throw IllegalArgumentException();
else
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
}
@ -807,7 +807,7 @@ Any SAL_CALL SortedResultSet::getPropertyValue( const OUString& PropertyName )
}
}
else
throw UnknownPropertyException();
throw UnknownPropertyException(PropertyName);
return aRet;
}
@ -1796,7 +1796,7 @@ SRSPropertySetInfo::getPropertyByName( const OUString& Name )
else if ( Name == "IsRowCountFinal" )
return maProps[1];
else
throw UnknownPropertyException();
throw UnknownPropertyException(Name);
}

View File

@ -537,7 +537,7 @@ BaseContent::removeProperty( const OUString& Name )
{
if( m_nState & Deleted )
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( Name );
m_pMyShell->deassociate( m_aUncPath, Name );
}

View File

@ -30,12 +30,6 @@ using namespace com::sun::star::ucb;
#include "filinl.hxx"
#if OSL_DEBUG_LEVEL > 0
#define THROW_WHERE SAL_WHERE
#else
#define THROW_WHERE ""
#endif
XPropertySetInfo_impl::XPropertySetInfo_impl( TaskManager* pMyShell,const OUString& aUnqPath )
: m_pMyShell( pMyShell ),
m_seq( 0 )
@ -81,7 +75,7 @@ XPropertySetInfo_impl::getPropertyByName( const OUString& aName )
if (pProp != m_seq.end())
return *pProp;
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aName );
}

View File

@ -641,7 +641,7 @@ void SAL_CALL XResultSet_impl::setPropertyValue(
if( aPropertyName == "IsRowCountFinal" ||
aPropertyName == "RowCount" )
return;
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
}
@ -658,7 +658,7 @@ uno::Any SAL_CALL XResultSet_impl::getPropertyValue(
return uno::Any(count);
}
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( PropertyName );
}
@ -684,7 +684,7 @@ void SAL_CALL XResultSet_impl::addPropertyChangeListener(
m_pRowCountListeners->addInterface( xListener );
}
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
}
@ -706,7 +706,7 @@ void SAL_CALL XResultSet_impl::removePropertyChangeListener(
m_pRowCountListeners->removeInterface( aListener );
}
else
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( aPropertyName );
}
void SAL_CALL XResultSet_impl::addVetoableChangeListener(

View File

@ -590,7 +590,7 @@ TaskManager::deassociate( const OUString& aUnqPath,
it1 = properties.find( oldProperty );
if( it1 == properties.end() )
throw beans::UnknownPropertyException( THROW_WHERE );
throw beans::UnknownPropertyException( PropertyName );
properties.erase( it1 );

View File

@ -351,7 +351,7 @@ XPropertySetInfoImpl2::getPropertyByName( const OUString& aName )
if (pProp != m_seq.end())
return *pProp;
throw UnknownPropertyException( THROW_WHERE );
throw UnknownPropertyException( aName );
}
@ -416,7 +416,7 @@ FileProvider::setPropertyValue( const OUString& aPropertyName,
if( !(aPropertyName == "FileSystemNotation" ||
aPropertyName == "HomeDirectory" ||
aPropertyName == "HostName") )
throw UnknownPropertyException( THROW_WHERE );
throw UnknownPropertyException( aPropertyName );
}
@ -438,7 +438,7 @@ FileProvider::getPropertyValue(
return Any(m_HostName);
}
else
throw UnknownPropertyException( THROW_WHERE );
throw UnknownPropertyException( aPropertyName );
}

View File

@ -380,7 +380,7 @@ public:
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
if (pProp != m_aSeq.end())
return *pProp;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aName);
}
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
@ -423,7 +423,7 @@ void SAL_CALL ResultSetBase::setPropertyValue(
aPropertyName == "RowCount" )
return;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
@ -440,7 +440,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
return uno::Any(count);
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
@ -466,7 +466,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
m_pRowCountListeners->addInterface( xListener );
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
@ -487,7 +487,7 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
m_pRowCountListeners->removeInterface( aListener );
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}

View File

@ -1009,7 +1009,7 @@ void Content::removeProperty( const OUString& Name,
{
case UNKNOWN:
case DAV:
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(Name);
case FTP:
case NON_DAV:

View File

@ -983,7 +983,7 @@ void Content::removeProperty( const OUString& Name,
{
case UNKNOWN:
case DAV:
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(Name);
case NON_DAV:
// Try to remove property from local store.

View File

@ -156,7 +156,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
if ( queryProperty( aName, aProp ) )
return aProp;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aName);
}

View File

@ -1245,9 +1245,6 @@ ResultSet::getPropertySetInfo()
void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
const uno::Any& )
{
if ( aPropertyName.isEmpty() )
throw beans::UnknownPropertyException();
if ( aPropertyName == "RowCount" )
{
// property is read-only.
@ -1260,7 +1257,7 @@ void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
}
else
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
}
@ -1269,9 +1266,6 @@ void SAL_CALL ResultSet::setPropertyValue( const OUString& aPropertyName,
uno::Any SAL_CALL ResultSet::getPropertyValue(
const OUString& PropertyName )
{
if ( PropertyName.isEmpty() )
throw beans::UnknownPropertyException();
uno::Any aValue;
if ( PropertyName == "RowCount" )
@ -1284,7 +1278,7 @@ uno::Any SAL_CALL ResultSet::getPropertyValue(
}
else
{
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
return aValue;
@ -1303,7 +1297,7 @@ void SAL_CALL ResultSet::addPropertyChangeListener(
if ( !aPropertyName.isEmpty() &&
aPropertyName != "RowCount" &&
aPropertyName != "IsRowCountFinal" )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if ( !m_pImpl->m_pPropertyChangeListeners )
m_pImpl->m_pPropertyChangeListeners.reset(
@ -1324,7 +1318,7 @@ void SAL_CALL ResultSet::removePropertyChangeListener(
if ( !aPropertyName.isEmpty() &&
aPropertyName != "RowCount" &&
aPropertyName != "IsRowCountFinal" )
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
if ( m_pImpl->m_pPropertyChangeListeners )
m_pImpl->m_pPropertyChangeListeners->removeInterface(
@ -1515,7 +1509,7 @@ beans::Property SAL_CALL PropertySetInfo::getPropertyByName(
if ( queryProperty( aName, aProp ) )
return aProp;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aName);
}

View File

@ -112,7 +112,7 @@ public:
m_pImpl->SetParentWindow(xWindow);
return;
}
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
}
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString& rPropertyName) override
@ -121,7 +121,7 @@ public:
{
return uno::Any(m_pImpl->GetParentWindow());
}
throw css::beans::UnknownPropertyException();
throw css::beans::UnknownPropertyException(rPropertyName);
}
};

View File

@ -374,7 +374,7 @@ public:
[&aName](const beans::Property& rProp) { return aName == rProp.Name; });
if (pProp != m_aSeq.end())
return *pProp;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aName);
}
sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override
@ -416,7 +416,7 @@ void SAL_CALL ResultSetBase::setPropertyValue(
aPropertyName == "RowCount" )
return;
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
@ -433,7 +433,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue(
return uno::Any(count);
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(PropertyName);
}
@ -459,7 +459,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener(
m_pRowCountListeners->addInterface( xListener );
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}
@ -480,7 +480,7 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener(
m_pRowCountListeners->removeInterface( aListener );
}
else
throw beans::UnknownPropertyException();
throw beans::UnknownPropertyException(aPropertyName);
}