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