Skip to content

Commit

Permalink
fix: error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre committed Jan 16, 2025
1 parent 8d7e5ab commit 5de3208
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<version.junit5>5.10.3</version.junit5>
<version.okhttp>4.12.0</version.okhttp>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.unleash.specification>5.1.7</version.unleash.specification>
<version.unleash.specification>5.1.9</version.unleash.specification>
<arguments />
<version.jackson>2.17.2</version.jackson>
<version.logback>1.3.14</version.logback>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/getunleash/DefaultUnleash.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public DefaultUnleash(
try {
this.unleashEngine.takeState(
JsonFeatureParser.toJsonString(featureCollection));
} catch (YggdrasilInvalidInputException e) {
} catch (YggdrasilInvalidInputException | YggdrasilError e) {
LOGGER.error("Unable to update features", e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public MetricsBucket captureMetrics() {
public void setState(String raw) {
try {
this.unleashEngine.takeState(raw);
} catch (YggdrasilInvalidInputException e) {
} catch (YggdrasilInvalidInputException | YggdrasilError e) {
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit 5de3208

Please sign in to comment.