From 5a3a0041a059031eaeea2558172cf01f19714c6e Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Wed, 26 Mar 2008 06:04:56 +0000 Subject: [PATCH] Adding the predicate to the IllegalArgumentException as per COLLECTIONS-280 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@641165 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/collection/PredicatedCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/collections/collection/PredicatedCollection.java b/src/java/org/apache/commons/collections/collection/PredicatedCollection.java index 78a37c7d7..38520edf7 100644 --- a/src/java/org/apache/commons/collections/collection/PredicatedCollection.java +++ b/src/java/org/apache/commons/collections/collection/PredicatedCollection.java @@ -98,7 +98,7 @@ public class PredicatedCollection extends AbstractSerializableCollectionDecorato */ protected void validate(Object object) { if (predicate.evaluate(object) == false) { - throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate rejected it"); + throw new IllegalArgumentException("Cannot add Object '" + object + "' - Predicate '" + predicate + "' rejected it"); } }