@Singleton @Requires(classes=org.grails.datastore.mapping.validation.ValidationException.class) public class ValidationExceptionHandler extends Object implements ExceptionHandler<org.grails.datastore.mapping.validation.ValidationException,HttpResponse<JsonError>>
Constructor and Description |
---|
ValidationExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
HttpResponse<JsonError> |
handle(HttpRequest request,
org.grails.datastore.mapping.validation.ValidationException exception)
Handles an exception and returns the result.
|
public HttpResponse<JsonError> handle(HttpRequest request, org.grails.datastore.mapping.validation.ValidationException exception)
ExceptionHandler
handle
in interface ExceptionHandler<org.grails.datastore.mapping.validation.ValidationException,HttpResponse<JsonError>>
request
- The requestexception
- The exception type