The notBlank validation of the type should tell which parameter is not valid.

This commit is contained in:
Robert Winkler
2017-01-03 15:58:43 +01:00
parent 039607a294
commit 81edab38f3

View File

@@ -38,7 +38,7 @@ public class BasicType extends Type {
public BasicType(String type, String name, String format) { public BasicType(String type, String name, String format) {
super(name); super(name);
Validate.notBlank(type); Validate.notBlank(type, "Type of parameter '%s' must not be blank", name);
this.type = type; this.type = type;
this.format = format; this.format = format;
} }