@Singleton @Primary @Produces public class AuthenticationExceptionHandler extends java.lang.Object implements io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.MutableHttpResponse<?>>
AuthenticationException
is thrown.Modifier and Type | Field and Description |
---|---|
protected io.micronaut.context.event.ApplicationEventPublisher<?> |
eventPublisher |
Constructor and Description |
---|
AuthenticationExceptionHandler(io.micronaut.context.event.ApplicationEventPublisher<?> eventPublisher) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.MutableHttpResponse<?> |
handle(io.micronaut.http.HttpRequest request,
AuthenticationException exception) |
protected final io.micronaut.context.event.ApplicationEventPublisher<?> eventPublisher
public AuthenticationExceptionHandler(io.micronaut.context.event.ApplicationEventPublisher<?> eventPublisher)
public io.micronaut.http.MutableHttpResponse<?> handle(io.micronaut.http.HttpRequest request, AuthenticationException exception)
handle
in interface io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,io.micronaut.http.MutableHttpResponse<?>>