Class CcsServerExceptionMapper
java.lang.Object
io.clonecloudstore.common.quarkus.exception.CcsServerExceptionMapper
Global Server Exception Mapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeException
getCcsException
(int status) static RuntimeException
getCcsException
(int status, String message, Throwable throwable) io.smallrye.mutiny.Uni
<jakarta.ws.rs.core.Response> handleClientException
(CcsClientGenericException exception) io.smallrye.mutiny.Uni
<jakarta.ws.rs.core.Response> handleServerException
(CcsServerGenericException exception) Exception Server Handlerio.smallrye.mutiny.Uni
<jakarta.ws.rs.core.Response> handleWebClientApplicationException
(org.jboss.resteasy.reactive.client.api.WebClientApplicationException exception)
-
Field Details
-
EXCEPTION_MAPPER
- See Also:
-
-
Constructor Details
-
CcsServerExceptionMapper
public CcsServerExceptionMapper()
-
-
Method Details
-
getCcsException
-
getCcsException
-
handleServerException
public io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response> handleServerException(CcsServerGenericException exception) Exception Server Handler- Parameters:
exception
- CcsServerGenericException- Returns:
- Uni Response
-
handleClientException
public io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response> handleClientException(CcsClientGenericException exception) -
handleWebClientApplicationException
public io.smallrye.mutiny.Uni<jakarta.ws.rs.core.Response> handleWebClientApplicationException(org.jboss.resteasy.reactive.client.api.WebClientApplicationException exception)
-