Package io.micronaut.jaxrs.runtime.core
Class JaxRsExceptionHandler
java.lang.Object
io.micronaut.jaxrs.runtime.core.JaxRsExceptionHandler
- All Implemented Interfaces:
ExceptionHandler<WebApplicationException,
HttpResponse<?>>
@Singleton
@Produces
public class JaxRsExceptionHandler
extends Object
implements ExceptionHandler<WebApplicationException,HttpResponse<?>>
Handles JAX-RS exceptions that occur during the execution of an HTTP request.
- Author:
- guillermocalvo
-
Constructor Summary
ConstructorDescriptionJaxRsExceptionHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionHttpResponse<?>
handle
(HttpRequest request, WebApplicationException exception)
-
Constructor Details
-
JaxRsExceptionHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceExceptionHandler<WebApplicationException,
HttpResponse<?>>
-