Class CcsServerExceptionMapper

java.lang.Object
io.clonecloudstore.common.quarkus.exception.CcsServerExceptionMapper

public class CcsServerExceptionMapper extends Object
Global Server Exception Mapper
  • Field Details

  • Constructor Details

    • CcsServerExceptionMapper

      public CcsServerExceptionMapper()
  • Method Details

    • getCcsException

      public static RuntimeException getCcsException(int status)
    • getCcsException

      public static RuntimeException getCcsException(int status, String message, Throwable throwable)
    • 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)