Use more specific ChronicleHashClosedException instead of IllegalStateException, when methods of ChronicleHash are called after hash.close(). Actualize ChronicleHash.close() javadoc.

This commit is contained in:
leventov
2016-08-05 23:22:51 +07:00
parent f9edc314bb
commit ba8227ade1
5 changed files with 69 additions and 5 deletions
@@ -1002,7 +1002,7 @@ public abstract class VanillaChronicleHash<K,
private void checkOpen() {
if (closed)
throw new IllegalStateException("Access to ChronicleHash after close()");
throw new ChronicleHashClosedException();
}
protected void addContext(ChainingInterface context) {