mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
More eleborate ExternalizableDataAccess error message, when failed to call a public no-arg constructor
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user