diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/sequenceashashmap.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx index b34d8c93cd8e..35f2d6bf118a 100644 --- a/comphelper/source/misc/sequenceashashmap.cxx +++ b/comphelper/source/misc/sequenceashashmap.cxx @@ -75,9 +75,11 @@ void SequenceAsHashMap::operator<<(const css::uno::Any& aSource) return; } - throw std::invalid_argument("Any contains wrong type."); + throw css::beans::IllegalTypeException( + "Any contains wrong type." ); } + void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lSource) { sal_Int32 c = lSource.getLength(); @@ -92,7 +94,8 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS (lP.Name.isEmpty()) || (!lP.Value.hasValue()) ) - throw std::invalid_argument("PropertyValue struct contains no useful information."); + throw css::beans::IllegalTypeException( + "PropertyValue struct contains no useful information." ); (*this)[lP.Name] = lP.Value; continue; } @@ -104,14 +107,16 @@ void SequenceAsHashMap::operator<<(const css::uno::Sequence< css::uno::Any >& lS (lN.Name.isEmpty()) || (!lN.Value.hasValue()) ) - throw std::invalid_argument("NamedValue struct contains no useful information."); + throw css::beans::IllegalTypeException( + "NamedValue struct contains no useful information." ); (*this)[lN.Name] = lN.Value; continue; } // ignore VOID Any ... but reject wrong filled ones! if (lSource[i].hasValue()) - throw std::invalid_argument("Any contains wrong type."); + throw css::beans::IllegalTypeException( + "Any contains wrong type." ); } } |