Class OauthErrorResponseExceptionHandler

    • Constructor Detail

      • OauthErrorResponseExceptionHandler

        public OauthErrorResponseExceptionHandler()
    • Method Detail

      • handle

        public io.micronaut.http.MutableHttpResponse<?> handle​(io.micronaut.http.HttpRequest request,
                                                               OauthErrorResponseException exception)
        Specified by:
        handle in interface io.micronaut.http.server.exceptions.ExceptionHandler<OauthErrorResponseException,​io.micronaut.http.MutableHttpResponse<?>>
      • responseBody

        protected java.util.Map<java.lang.String,​java.lang.Object> responseBody​(ErrorResponse errorResponse)
        Parameters:
        errorResponse - Error Response
        Returns:
        A Map which will be serialized as the body of the HTTP response