Package | Description |
---|---|
com.naturalprogrammer.spring.lemon.exceptions | |
com.naturalprogrammer.spring.lemon.exceptions.handlers | |
com.naturalprogrammer.spring.lemon.util |
Modifier and Type | Method and Description |
---|---|
MultiErrorException |
MultiErrorException.httpStatus(org.springframework.http.HttpStatus status) |
MultiErrorException |
MultiErrorException.validate(boolean valid,
java.lang.String messageKey,
java.lang.Object... args)
Adds a global-error if the given condition isn't true
|
MultiErrorException |
MultiErrorException.validate(java.lang.String fieldName,
boolean valid,
java.lang.String messageKey,
java.lang.Object... args)
Adds a field-error if the given condition isn't true
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<FieldError> |
MultiErrorExceptionHandler.getErrors(MultiErrorException ex) |
java.lang.String |
MultiErrorExceptionHandler.getMessage(MultiErrorException ex) |
org.springframework.http.HttpStatus |
MultiErrorExceptionHandler.getStatus(MultiErrorException ex) |
Modifier and Type | Field and Description |
---|---|
static MultiErrorException |
LemonUtils.NOT_FOUND_EXCEPTION |
Modifier and Type | Method and Description |
---|---|
static MultiErrorException |
LemonUtils.validate(boolean valid,
java.lang.String messageKey,
java.lang.Object... args)
Creates a MultiErrorException out of the given parameters
|
static MultiErrorException |
LemonUtils.validate(java.lang.String fieldName,
boolean valid,
java.lang.String messageKey,
java.lang.Object... args)
Creates a MultiErrorException out of the given parameters
|
Modifier and Type | Method and Description |
---|---|
static java.util.function.Supplier<MultiErrorException> |
LemonUtils.notFoundSupplier()
Supplys a 404 exception
|