Package org.keycloak.validate
Class ValidationError
java.lang.Object
org.keycloak.validate.ValidationError
- All Implemented Interfaces:
 Serializable
Denotes an error found during validation.
- See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionValidationError(String validatorId, String inputHint, String message) ValidationError(String validatorId, String inputHint, String message, Object... messageParameters)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanformatMessage(BiFunction<String, Object[], String> formatter) Formats the currentValidationErrorwith the given formatterFunction.Object[]Returns an array where the first element is theinputHintfollowed by themessageParameters.Object[]Returns the raw message parameters, e.g.jakarta.ws.rs.core.Response.StatusinthashCode()setStatusCode(jakarta.ws.rs.core.Response.Status statusCode) toString() 
- 
Field Details
- 
MESSAGE_INVALID_VALUE
A generic invalid value message.- See Also:
 
 
 - 
 - 
Constructor Details
- 
ValidationError
 - 
ValidationError
 
 - 
 - 
Method Details
- 
getValidatorId
 - 
getInputHint
 - 
getMessage
 - 
getMessageParameters
Returns the raw message parameters, e.g. the actual input that was given for validation.- Returns:
 - See Also:
 
 - 
formatMessage
Formats the currentValidationErrorwith the given formatterFunction.The formatter
Functionwill be called with themessageandgetInputHintWithMessageParameters()to render the error message.- Parameters:
 formatter-- Returns:
 
 - 
getInputHintWithMessageParameters
Returns an array where the first element is theinputHintfollowed by themessageParameters.- Returns:
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 - 
setStatusCode
 - 
getStatusCode
public jakarta.ws.rs.core.Response.Status getStatusCode() 
 -