Skip to content

Commit

Permalink
Merge pull request #326 from filip26/release/v1.4.0
Browse files Browse the repository at this point in the history
v1.4.0
  • Loading branch information
filip26 authored Feb 26, 2024
2 parents 760b0f7 + c785d81 commit 40f7a17
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ Java 11+
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>titanium-json-ld</artifactId>
<version>1.3.3</version>
<version>1.4.0</version>
</dependency>
```

##### Gradle
Java 8+, Android API Level >=24

```gradle
implementation("com.apicatalog:titanium-json-ld-jre8:1.3.3")
implementation("com.apicatalog:titanium-json-ld-jre8:1.4.0")
```

#### JSON-P Provider
Expand Down Expand Up @@ -153,7 +153,7 @@ JsonLd.compact(document, contextDocument).get();
...
```

#### Processing Timeout
#### Processing Timeout [experimental]
A processor gets terminated eventually after a specified time. Please note
the duration does not cover `DocumentLoader` processing time.
You have to set-up a read timeout separately.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apicatalog</groupId>
<artifactId>titanium</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
<relativePath>pom_parent.xml</relativePath>
</parent>
<artifactId>titanium-json-ld</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom_jre8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.apicatalog</groupId>
<artifactId>titanium</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
<relativePath>pom_parent.xml</relativePath>
</parent>
<artifactId>titanium-json-ld-jre8</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom_parent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.apicatalog</groupId>
<artifactId>titanium</artifactId>
<version>1.4.0-SNAPSHOT</version>
<version>1.4.0</version>
<packaging>pom</packaging>

<name>Titanium JSON-LD 1.1</name>
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/apicatalog/jsonld/JsonLdError.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public JsonLdError(JsonLdErrorCode code, Throwable cause) {
this.code = code;
}

public JsonLdError(JsonLdErrorCode code, String message, Throwable cause) {
super(message, cause);
this.code = code;
}


public JsonLdErrorCode getCode() {
return code;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private void fetch(final String context, final URI baseUrl) throws JsonLdError {

// 5.2.5.1.
} catch (JsonLdError e) {
throw new JsonLdError(JsonLdErrorCode.LOADING_REMOTE_CONTEXT_FAILED, e);
throw new JsonLdError(JsonLdErrorCode.LOADING_REMOTE_CONTEXT_FAILED, "There wa a problem encountered loading a remote context [" + contextUri + "]", e);
}

if (remoteImport == null) {
Expand Down

0 comments on commit 40f7a17

Please sign in to comment.