@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)
Deprecated.
This will be removed in the next major version, so that this class uses the ErrorProcessor API
|
| 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
@Deprecated public AuthenticationExceptionHandler(io.micronaut.context.event.ApplicationEventPublisher<?> eventPublisher)
eventPublisher - The event publisherpublic 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<?>>