public static JobResourceNotFoundException fromJobNotFoundException(JobNotFoundException e) { return new JobResourceNotFoundException(e.getJobId(), e.getMessage(), e.getCause()); } }
@Override public Job getJobFromStore(JobId jobId) throws JobNotFoundException { JobResult jobResult = store.get(jobId); if (jobResult == null) { throw new JobNotFoundException(jobId); } return new Job(jobId, jobResult, jobResultsStore); }