Class AuthenticationExceptionHandler

  • All Implemented Interfaces:
    io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,​io.micronaut.http.HttpResponse>

    @Singleton
    @Primary
    @Produces
    public class AuthenticationExceptionHandler
    extends java.lang.Object
    implements io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,​io.micronaut.http.HttpResponse>
    Handles the server response when an AuthenticationException is thrown.
    Since:
    1.0
    Author:
    James Kleeh
    • Constructor Detail

      • AuthenticationExceptionHandler

        public AuthenticationExceptionHandler()
    • Method Detail

      • handle

        public io.micronaut.http.HttpResponse handle​(io.micronaut.http.HttpRequest request,
                                                     AuthenticationException exception)
        Specified by:
        handle in interface io.micronaut.http.server.exceptions.ExceptionHandler<AuthenticationException,​io.micronaut.http.HttpResponse>