From: Roland Haeder Date: Tue, 18 Aug 2015 06:34:24 +0000 (+0200) Subject: Improved logging message with sizes of entry set and criteria matches X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b04ec5c8f433289f360846d483b08e13452c1891;p=jcore.git Improved logging message with sizes of entry set and criteria matches Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java b/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java index d8f0bf6..b4ea760 100644 --- a/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java +++ b/src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java @@ -121,7 +121,7 @@ public class SearchCriteria extends BaseCriteria implements SearchableCriteria { matches = (criteraMatches.size() == 1); } else if (this.getLogical() == null) { // Logical instance is null - throw new NullPointerException("logical is not set, but more than one column shall be matched."); //NOI18N + throw new NullPointerException(MessageFormat.format("logical is not set, but more than one column ({0}/{1}) shall be matched.", this.entrySet().size(), criteraMatches.size())); //NOI18N } else { // Now for the final test matches = this.getLogical().matches(this.entrySet(), criteraMatches);