Class ThrowingHttpProblemClientExceptionMapper

java.lang.Object
io.quarkiverse.httpproblem.client.ThrowingHttpProblemClientExceptionMapper
All Implemented Interfaces:
org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper<RuntimeException>

public class ThrowingHttpProblemClientExceptionMapper extends Object implements org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper<RuntimeException>
Parses application/problem+json response types and rethrows them as `HttpProblem`.

Intended to be used as @Provider for RestClients via @RegisterRestClient.

  • Constructor Details

    • ThrowingHttpProblemClientExceptionMapper

      public ThrowingHttpProblemClientExceptionMapper()
  • Method Details

    • toThrowable

      public RuntimeException toThrowable(jakarta.ws.rs.core.Response response)
      Specified by:
      toThrowable in interface org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper<RuntimeException>