Class ClientRequestExceptionMapper
java.lang.Object
org.sdase.commons.client.jersey.error.ClientRequestExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ClientRequestException>
public class ClientRequestExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<ClientRequestException>
Exception mapper that converts
ClientRequestException
thrown from an outgoing request to
another service into a 500 Internal Server Error
response for our client.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(ClientRequestException exception)
-
Constructor Details
-
ClientRequestExceptionMapper
public ClientRequestExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<ClientRequestException>
-