use of com.thoughtworks.go.config.PipelineNotFoundException in project gocd by gocd.
the class PipelineHistoryController method list.
@RequestMapping(value = "/tab/pipeline/history", method = RequestMethod.GET)
public ModelAndView list(@RequestParam("pipelineName") String pipelineName) throws Exception {
Map model = new HashMap();
try {
PipelineConfig pipelineConfig = goConfigService.pipelineConfigNamed(new CaseInsensitiveString(pipelineName));
model.put("pipelineName", pipelineConfig.name());
model.put("l", localizer);
model.put("isEditableViaUI", goConfigService.isPipelineEditable(pipelineName));
return new ModelAndView("pipeline/pipeline_history", model);
} catch (PipelineNotFoundException e) {
model.put("errorMessage", e.getMessage());
return new ModelAndView("exceptions_page", model);
}
}
Aggregations