Package org.keycloak.userprofile
Class ValidationException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- org.keycloak.userprofile.ValidationException
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Consumer<ValidationError>
 
 public final class ValidationException extends RuntimeException implements Consumer<ValidationError> - Author:
- Pedro Igor
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classValidationException.Error
 - 
Constructor SummaryConstructors Constructor Description ValidationException()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ValidationError error)List<ValidationException.Error>getErrors()StringgetMessage()javax.ws.rs.core.Response.StatusgetStatusCode()booleanhasError(String... types)booleanisAttributeOnError(String... name)Checks if there are validation errors related to the attribute with the givenname.StringtoString()- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Method Detail- 
getErrorspublic List<ValidationException.Error> getErrors() 
 - 
hasErrorpublic boolean hasError(String... types) 
 - 
isAttributeOnErrorpublic boolean isAttributeOnError(String... name) Checks if there are validation errors related to the attribute with the givenname.- Parameters:
- name-
- Returns:
 
 - 
acceptpublic void accept(ValidationError error) - Specified by:
- acceptin interface- Consumer<ValidationError>
 
 - 
getMessagepublic String getMessage() - Overrides:
- getMessagein class- Throwable
 
 - 
getStatusCodepublic javax.ws.rs.core.Response.Status getStatusCode() 
 
- 
 
-