add exception cause

This commit is contained in:
epickrram
2017-07-26 11:22:24 +01:00
parent da67d54671
commit 5fc64e361c
@@ -1828,7 +1828,8 @@ public final class ChronicleMapBuilder<K, V> implements
getDeclaredConstructor(getClass()).newInstance(this);
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException |
InvocationTargetException | ClassNotFoundException e) {
throw new IllegalStateException("Cannot load specified implementation class: " + replicatedMapClassName);
throw new IllegalStateException("Cannot load specified implementation class: " + replicatedMapClassName,
e);
}
} else {
return new VanillaChronicleMap<>(this);