JCL-402: Low-level client throws enriched exceptions by NSeydoux · Pull Request #1157 · inrupt/solid-client-java

@NSeydoux marked this pull request as ready for review

April 12, 2024 12:46

NSeydoux

NSeydoux

@NSeydoux NSeydoux changed the base branch from JCL-460/problem-details-class to JCL-402/problem-details-exceptions

April 14, 2024 21:28

@NSeydoux NSeydoux changed the title JCL-463: Low-level client throws enriched exceptions JCL-402: Low-level client throws enriched exceptions

Apr 14, 2024

@NSeydoux NSeydoux marked this pull request as ready for review

April 14, 2024 22:27

langsamu

jholleran

@NSeydoux NSeydoux changed the base branch from JCL-402/problem-details-exceptions to JCL-460/problem-details-class-http-status

April 16, 2024 08:36

NSeydoux

NSeydoux

langsamu

jholleran

Base automatically changed from JCL-460/problem-details-class-http-status to main

April 18, 2024 11:53

acoburn

`SolidClient` now parses HTTP error responses if they are compliant with
RFC9457 in order to throw a structured exception. In case when no JSON
parser is available in the classpath, the default behavior is to build
a ProblemDetails object that only relies on the data available in the
HTTP response status code.

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

It will be used in Jena and RDF4J modules too

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

HTTP body handlers are applied by the low-level HTTP client, so they
should only ever map to an HTTP response. The processing of that
response is then the responsibility of the caller.

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux

@NSeydoux NSeydoux deleted the JCL-463/solid-client-throws-pd-exception branch

April 23, 2024 08:09