@Requires(classes=OauthErrorResponseException.class) @Produces @Singleton public class OauthErrorResponseExceptionHandler extends java.lang.Object implements io.micronaut.http.server.exceptions.ExceptionHandler<OauthErrorResponseException,io.micronaut.http.MutableHttpResponse<?>>
OauthErrorResponseException
with status 400.Constructor and Description |
---|
OauthErrorResponseExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.MutableHttpResponse<?> |
handle(io.micronaut.http.HttpRequest request,
OauthErrorResponseException exception) |
protected java.util.Map<java.lang.String,java.lang.Object> |
responseBody(ErrorResponse errorResponse) |
public io.micronaut.http.MutableHttpResponse<?> handle(io.micronaut.http.HttpRequest request, OauthErrorResponseException exception)
handle
in interface io.micronaut.http.server.exceptions.ExceptionHandler<OauthErrorResponseException,io.micronaut.http.MutableHttpResponse<?>>
protected java.util.Map<java.lang.String,java.lang.Object> responseBody(ErrorResponse errorResponse)
errorResponse
- Error Response