Describes the binding result of all controller fields and controller
method parameters which are annotated with a binding annotation like
javax.ws.rs.FormParam.
A binding can fail because of type conversion issues or in case of validation errors. The former can for example happen if the binding annotation is placed on a numeric type but the value cannot be converted to that type. The latter may be caused by constraint violations detected during validation.
Controller methods which declare a parameter of this type will be executed even if the binding for fields and method parameters fails.
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: All binding and validation errors.Returns an immutable set of all binding and validation errors. |
| public List | Returns: A list of human-readable messagesReturns an immutable list of all messages representing both binding and validation errors. |
| public Set | |
| public boolean | Returns: true if there is at least one parameter errorReturns |
| getAllErrors | back to summary |
|---|---|
| public Set Returns an immutable set of all binding and validation errors.
| |
| getAllMessages | back to summary |
|---|---|
| public List Returns an immutable list of all messages representing both binding and validation errors. This method is a shortcut for: getAllErrors().stream().map(ParamError::getMessage).collect(Collectors.toList()) | |
| getErrors | back to summary |
|---|---|
| public Set Returns an immutable set of all binding and validation errors for a specific parameter.
| |
| isFailed | back to summary |
|---|---|
| public boolean isFailed() Returns
| |