From fced31697bcc2a2a4da34d804582002de0320302 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Nov 2014 18:16:18 +0100 Subject: comphelper::SequenceAsHashMap: throw IllegalArgumentException ...instead of IllegalTypeException (where the latter is not a RuntimeException). Fixes cid#707218, cid#1224993, etc., and reverts previous fix 358f5280e0f6afb968edc295d8f1dce55f05e18f "Fix coverity#1224993 w/o breaking JunitTest_framework_unoapi." Change-Id: I13ce153e1513749fb0be2ee8e560cec86a30c5ba --- include/comphelper/sequenceashashmap.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/comphelper') diff --git a/include/comphelper/sequenceashashmap.hxx b/include/comphelper/sequenceashashmap.hxx index 38cf734d56ad..7d9cdfdc5d20 100644 --- a/include/comphelper/sequenceashashmap.hxx +++ b/include/comphelper/sequenceashashmap.hxx @@ -27,7 +27,6 @@ #include #include -#include #include @@ -99,7 +98,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase @param aSource contains the new items for this map. - @throw An com::sun::star::beans::IllegalTypeException + @throw An com::sun::star::lang::IllegalArgumentException is thrown, if the given any does not contain a suitable sequence ... but not if it's a VOID Any! */ @@ -114,7 +113,7 @@ class COMPHELPER_DLLPUBLIC SequenceAsHashMap : public SequenceAsHashMapBase @param lSource contains the new items for this map. - @throw An com::sun::star::beans::IllegalTypeException + @throw An com::sun::star::lang::IllegalArgumentException is thrown, if the given any sequence uses wrong types for its items. VOID Any will be ignored! */ -- cgit