Skip to content

Commit

Permalink
Throw IOException instead of Runtime to be inline with the rest of th…
Browse files Browse the repository at this point in the history
…e class
  • Loading branch information
zabetak committed Dec 7, 2021
1 parent 4ad4bbe commit 1e67cec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void write(K key, V value) throws IOException {
key.write(statement);
statement.addBatch();
} catch (SQLException e) {
throw new RuntimeException("Failed to execute SQL statement for key " + key, e);
throw new IOException("Failed to execute SQL statement for key " + key, e);
}
}
}
Expand Down

0 comments on commit 1e67cec

Please sign in to comment.