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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ValidationError error) jakarta.ws.rs.core.Response.Status
boolean
boolean
isAttributeOnError
(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:
accept
in interfaceConsumer<ValidationError>
-
toString
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getStatusCode
public jakarta.ws.rs.core.Response.Status getStatusCode()
-