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:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaccept(ValidationError error) jakarta.ws.rs.core.Response.StatusbooleanbooleanisAttributeOnError(String... name) Checks if there are validation errors related to the attribute with the givenname.toString()Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Constructor Details- 
ValidationExceptionpublic ValidationException()
 
- 
- 
Method Details- 
getErrors
- 
hasError
- 
isAttributeOnErrorChecks if there are validation errors related to the attribute with the givenname.- Parameters:
- name-
- Returns:
 
- 
accept- Specified by:
- acceptin interface- Consumer<ValidationError>
 
- 
toString
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
- 
getStatusCodepublic jakarta.ws.rs.core.Response.Status getStatusCode()
 
-