Skip to content

Commit

Permalink
Tweak signatures on SafeExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Apr 28, 2017
1 parent 3e94d59 commit 61ae617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/zackehh/jackson/Jive.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static ArrayNode drop(ArrayNode node, int count) {
public static <T> Optional<T> execute(ObjectMapper mapper, SafeExecution<T> execution) {
try {
return Optional.ofNullable(execution.apply(mapper));
} catch(IOException e) {
} catch(Exception e) {
return Optional.empty();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/zackehh/jackson/scope/SafeExecution.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ public interface SafeExecution<T> {
* @return an instance of the defined custom type.
* @throws IOException if an error occurs in the Jackson operation.
*/
T apply(ObjectMapper mapper) throws IOException;
T apply(ObjectMapper mapper) throws Exception;
}

0 comments on commit 61ae617

Please sign in to comment.