We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89cce56 commit 8fac65dCopy full SHA for 8fac65d
client/rest-high-level/src/main/java/org/elasticsearch/client/Validatable.java
@@ -24,7 +24,9 @@
24
public interface Validatable {
25
ValidationException EMPTY_VALIDATION = new ValidationException() {
26
@Override
27
- public void addValidationError(String error) { }
+ public void addValidationError(String error) {
28
+ throw new UnsupportedOperationException("Validation messages should not be added to the empty validation");
29
+ }
30
};
31
32
/**
0 commit comments