Skip to content

Commit 475adc0

Browse files
committed
Improve RDF body mappers error message
1 parent bcca12a commit 475adc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jena/src/main/java/com/inrupt/client/jena/JenaBodyHandlers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class JenaBodyHandlers {
4949
private static void throwOnError(final Response.ResponseInfo responseInfo) {
5050
if (!Response.isSuccess(responseInfo.statusCode())) {
5151
throw new ClientHttpException(
52-
"Could not map to a Jena entity.",
52+
"An HTTP error was encountered mapping to a Jena entity.",
5353
responseInfo.uri(),
5454
responseInfo.statusCode(),
5555
responseInfo.headers(),

rdf4j/src/main/java/com/inrupt/client/rdf4j/RDF4JBodyHandlers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class RDF4JBodyHandlers {
4646
private static void throwOnError(final Response.ResponseInfo responseInfo) {
4747
if (!Response.isSuccess(responseInfo.statusCode())) {
4848
throw new ClientHttpException(
49-
"Could not map to an RDF4J entity.",
49+
"An HTTP error was encountered mapping to an RDF4J entity.",
5050
responseInfo.uri(),
5151
responseInfo.statusCode(),
5252
responseInfo.headers(),

0 commit comments

Comments
 (0)