Package io.micronaut.jaxrs.runtime.core
Class JaxRsGlobalExceptionHandler
java.lang.Object
io.micronaut.jaxrs.runtime.core.JaxRsGlobalExceptionHandler
- All Implemented Interfaces:
ExceptionHandler<Throwable,
HttpResponse<?>>
@Singleton
@Produces
@Internal
public class JaxRsGlobalExceptionHandler
extends Object
implements ExceptionHandler<Throwable,HttpResponse<?>>
Handles JAX-RS exceptions that occur during the execution of an HTTP request.
- Since:
- 4.6.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionJaxRsGlobalExceptionHandler
(ErrorResponseProcessor<?> responseProcessor, Providers providers) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionHttpResponse<?>
handle
(HttpRequest request, Throwable exception)
-
Constructor Details
-
JaxRsGlobalExceptionHandler
@Inject public JaxRsGlobalExceptionHandler(ErrorResponseProcessor<?> responseProcessor, Providers providers) Constructor.- Parameters:
responseProcessor
- Error Response Processorproviders
- The providers
-
-
Method Details
-
handle
- Specified by:
handle
in interfaceExceptionHandler<Throwable,
HttpResponse<?>>
-