Java library for RFC 9457 Problems with support for standard problem types of the Belgif REST guide.
With this library, RFC 9457 Problems can be treated as standard java exceptions:
- the server side can throw
io.github.belgif.rest.problem.api.Problem
exceptions (or subclasses), which are transparently converted to RFC 9457 compliant "application/problem+json" responses - the client side can catch
io.github.belgif.rest.problem.api.Problem
exceptions (or subclasses), which are transparently thrown when an RFC 9457 compliant "application/problem+json" response is received
Documentation on how to use this library is available on https://belgif.github.io/rest-problem-java.
The build process is documented here.