]> git.mxchange.org Git - jcore.git/commitdiff
Improved logging message with sizes of entry set and criteria matches
authorRoland Haeder <roland@mxchange.org>
Tue, 18 Aug 2015 06:34:24 +0000 (08:34 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 18 Aug 2015 06:34:24 +0000 (08:34 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/criteria/searchable/SearchCriteria.java

index d8f0bf67a5722796c6f68e790eaace11433aa552..b4ea7602131e4369b56e28ddbab9b5dccbd38c3e 100644 (file)
@@ -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);