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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionValidationError(String validatorId, String inputHint, String message) ValidationError(String validatorId, String inputHint, String message, Object... messageParameters) 
- 
Method SummaryModifier 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_VALUEA generic invalid value message.- See Also:
 
 
- 
- 
Constructor Details- 
ValidationError
- 
ValidationError
 
- 
- 
Method Details- 
getValidatorId
- 
getInputHint
- 
getMessage
- 
getMessageParametersReturns the raw message parameters, e.g. the actual input that was given for validation.- Returns:
- See Also:
 
- 
formatMessageFormats the currentValidationErrorwith the given formatterFunction.The formatter Functionwill be called with themessageandgetInputHintWithMessageParameters()to render the error message.- Parameters:
- formatter-
- Returns:
 
- 
getInputHintWithMessageParametersReturns an array where the first element is theinputHintfollowed by themessageParameters.- Returns:
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
setStatusCode
- 
getStatusCodepublic jakarta.ws.rs.core.Response.Status getStatusCode()
 
-