use of org.bytedeco.flycapture.FlyCapture2.Error in project vnfsdk-validation by onap.
the class VTPValidateCSARR130206 method validateCSAR.
@Override
protected void validateCSAR(CSARArchive csar) throws OnapCommandException {
try {
final Optional<Path> pathToCsarFolder = getPathToCsar(csar);
if (pathToCsarFolder.isPresent()) {
final CsarSecurityValidator csarSecurityValidator = new CsarSecurityValidator(csar, pathToCsarFolder.get());
this.errors.addAll(csarSecurityValidator.validate());
} else {
this.errors.add(new Error.CSARErrorUnableToFindCsarContent());
}
} catch (Exception e) {
LOG.error("Internal VTPValidateCSARR130206 command error", e);
throw new OnapCommandException("0x3000", "Internal VTPValidateCSARR130206 command error. See logs.");
}
}
Aggregations