Package org.keycloak.userprofile
Class ValidationException.ValidationExceptionBuilder
java.lang.Object
org.keycloak.userprofile.ValidationException.ValidationExceptionBuilder
- All Implemented Interfaces:
Consumer<ValidationError>
- Enclosing class:
- ValidationException
public static class ValidationException.ValidationExceptionBuilder
extends Object
implements Consumer<ValidationError>
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 Details
-
ValidationExceptionBuilder
public ValidationExceptionBuilder()
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<ValidationError>
-
hasError
public boolean hasError() -
build
-