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
- Author:
- Pedro Igor
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Creating a light-weight consumer of validation errors to avoid creating an empty exception which has an expensive stack trace without having the need for it. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.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
-
-
Method Details
-
getErrors
-
hasError
-
isAttributeOnError
Checks if there are validation errors related to the attribute with the givenname
.- Parameters:
name
-- Returns:
-
toString
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getStatusCode
public jakarta.ws.rs.core.Response.Status getStatusCode()
-