Currently we have code like this:
try {
byte[] value = chronicleMap.get(key);
LinkedList<BytesValue> list;
list = value == null ? new LinkedList<>() : SerializationUtils.deserialize(value); // <- can throw
for (byte[] v : values) {
list.addFirst(new BytesValue(v));
}
chronicleMap.put(key, SerializationUtils.serialize(list)); // <- can throw
return list.size();
} finally {
lock.unlock();
}
From 2 places the same exception can be thrown but only 1 of them indicates client error.
Should create try/catch and wrap the thrown exception.
Related to #74
Currently we have code like this:
From 2 places the same exception can be thrown but only 1 of them indicates client error.
Should create
try/catchand wrap the thrown exception.Related to #74