- All Implemented Interfaces:
- io.micronaut.http.server.exceptions.ExceptionHandler<java.lang.SecurityException,io.micronaut.http.HttpResponse>
@Produces
@Singleton
@Requires(classes=java.lang.SecurityException.class)
public class SecurityExceptionHandler
extends java.lang.Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<java.lang.SecurityException,io.micronaut.http.HttpResponse>
ExceptionHandler
to handle SecurityException
. It returns a 400 response with the exception message wrapped in a JsonError
.
- Since:
- 2.0.0
- Author:
- sdelamo