Skip to content

Commit 0963f89

Browse files
committed
Catch specific SPI error
1 parent 36e1e69 commit 0963f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solid/src/main/java/com/inrupt/client/solid/SolidClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class SolidClient {
6565
// It is acceptable for a SolidClient instance to be in a classpath without any implementation for
6666
// JsonService, in which case the ProblemDetails exceptions will fallback to default and not be parsed.
6767
js = ServiceProvider.getJsonService();
68-
} catch (Exception e) {
68+
} catch (IllegalStateException e) {
6969
js = null;
7070
}
7171
this.jsonService = js;

0 commit comments

Comments
 (0)