More eleborate ExternalizableDataAccess error message, when failed to call a public no-arg constructor

This commit is contained in:
leventov
2015-11-27 15:25:50 +03:00
parent 1f3fc3f785
commit 0a4ccaf9d1
@@ -46,7 +46,8 @@ public class ExternalizableDataAccess<T extends Externalizable> extends Serializ
try {
return tClass.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
throw new RuntimeException(
"Externalizable " + tClass + " must have a public no-arg constructor", e);
}
}