use of com.thinkbiganalytics.nifi.feedmgr.TemplateImportException in project kylo by Teradata.
the class TemplateImporter method validate.
public ImportTemplate validate() {
try {
init();
AbstractValidateImportTemplate validateImportTemplate = validateImportTemplateFactory.apply(this.importTemplate, this.importTemplateOptions, importType);
validateImportTemplate.validate();
} catch (NifiConnectionException e) {
throw e;
} catch (Exception e) {
this.overallStatusMessage.update("An Error occurred " + e.getMessage(), false);
throw new TemplateImportException("Error importing template " + fileName + ". " + e.getMessage());
}
overallStatusMessage.update("Validated template for import ", this.importTemplate.isValid());
return this.importTemplate;
}
Aggregations