1 package org.openecomp.sdc.vendorsoftwareproduct.errors;
3 import org.openecomp.sdc.common.errors.ErrorCategory;
4 import org.openecomp.sdc.common.errors.ErrorCode;
7 public class ComponentErrorBuilder {
9 private static final String VFC_INVALID_MISSING_IMAGE_MSG =
10 "All VFC need to have atleast a single Image specified. Please fix the VFC Images and re-submit the VSP";
13 public static ErrorCode VfcMissingImageErrorBuilder() {
14 ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
15 builder.withId(VendorSoftwareProductErrorCodes.VFC_INVALID);
16 builder.withCategory(ErrorCategory.APPLICATION);
18 .withMessage(String.format(VFC_INVALID_MISSING_IMAGE_MSG));
19 return builder.build();