Class ProblemWrapper

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.ws.rs.ProcessingException
javax.ws.rs.client.ResponseProcessingException
io.github.belgif.rest.problem.ee.jaxrs.client.ProblemWrapper
All Implemented Interfaces:
Serializable

public class ProblemWrapper extends javax.ws.rs.client.ResponseProcessingException
ResponseProcessingException that wraps a Problem.

If a Problem exception is thrown from a JAX-RS ClientResponseFilter, it would get wrapped in a ResponseProcessingException anyway. By wrapping it in our own ResponseProcessingException subclass, we at least have some more control over it.

See Also:
  • Constructor Details

    • ProblemWrapper

      public ProblemWrapper(Problem problem)
  • Method Details

    • getProblem

      public Problem getProblem()