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.Problemexceptions (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.Problemexceptions (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.
- Release artifacts are available on Maven Central (https://central.sonatype.com/namespace/io.github.belgif.rest.problem)
- Snapshot artifacts are also available (
latest-SNAPSHOTfor the main branch,pr<number>-SNAPSHOTfor PR branches):
<repositories>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>