in src/main/java/com/googlesource/gerrit/plugins/batch/BatchStore.java [126:138]
public Batch read(String id) throws IOException, NoSuchBatchException {
try {
Batch batch = gson.fromJson(gitFileFactory.create(getFileNameKey(id)).read(), Batch.class);
if (batch != null) { // gson.fromJson() can return null without throwing an exception
return batch;
}
} catch (ConfigInvalidException e) { // Not real, never going to be thrown
throw new RuntimeException(e);
} catch (NoSuchProjectException e) {
// Fall through
}
throw new NoSuchBatchException(id);
}