@Singleton
@Requires(classes=io.micronaut.http.server.exceptions.ExceptionHandler.class)
public class ValidationExceptionHandler
extends java.lang.Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<org.grails.datastore.mapping.validation.ValidationException,io.micronaut.http.HttpResponse<?>>
Constructor and Description |
---|
ValidationExceptionHandler(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.HttpResponse<?> |
handle(io.micronaut.http.HttpRequest request,
org.grails.datastore.mapping.validation.ValidationException exception) |
public ValidationExceptionHandler(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> responseProcessor)
responseProcessor
- Error Response Processorpublic io.micronaut.http.HttpResponse<?> handle(io.micronaut.http.HttpRequest request, org.grails.datastore.mapping.validation.ValidationException exception)
handle
in interface io.micronaut.http.server.exceptions.ExceptionHandler<org.grails.datastore.mapping.validation.ValidationException,io.micronaut.http.HttpResponse<?>>