@Produces
@Singleton
public class ThrowableProblemHandler
extends java.lang.Object
implements io.micronaut.http.server.exceptions.ExceptionHandler<org.zalando.problem.ThrowableProblem,io.micronaut.http.HttpResponse<?>>
ThrowableProblem
.Constructor and Description |
---|
ThrowableProblemHandler(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> responseProcessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
io.micronaut.http.HttpResponse<?> |
handle(io.micronaut.http.HttpRequest request,
org.zalando.problem.ThrowableProblem exception) |
public ThrowableProblemHandler(io.micronaut.http.server.exceptions.response.ErrorResponseProcessor<?> responseProcessor)
responseProcessor
- Error Response Processorpublic io.micronaut.http.HttpResponse<?> handle(io.micronaut.http.HttpRequest request, org.zalando.problem.ThrowableProblem exception)
handle
in interface io.micronaut.http.server.exceptions.ExceptionHandler<org.zalando.problem.ThrowableProblem,io.micronaut.http.HttpResponse<?>>