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 Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ValidationException
public ValidationException()
-
-
Method Details
-
getErrors
-
hasError
-
isAttributeOnError
Checks if there are validation errors related to the attribute with the givenname.- Parameters:
name-- Returns:
-
accept
- Specified by:
acceptin interfaceConsumer<ValidationError>
-
toString
-
getMessage
- Overrides:
getMessagein classThrowable
-
getStatusCode
public jakarta.ws.rs.core.Response.Status getStatusCode()
-