entitySchema);
} catch (ClassNotFoundException e) {
String msg = "StorageKey or entity class not found. Make sure the specific "
+ "record instances are on the classpath.";
LOG.error(msg, e);
throw new DatasetException(msg, e);
} catch (SecurityException e) {
String msg = "Cannot access key or entity class.";
LOG.error(msg, e);
throw new DatasetException(msg, e);
} catch (NoSuchFieldException e) {
String msg = "SCHEMA$ field not found in the entity class";
LOG.error(msg, e);
throw new DatasetException(msg, e);
} catch (IllegalAccessException e) {
String msg = "Not allowed to access SCHEMA$ field in the entity class";
LOG.error(msg, e);
throw new DatasetException(msg, e);
}
}
// Initialize the entity mappers this object wraps. There will be one entity
// mapper per version of the schema. When deserializing a row, we'll use the