1 package org.openecomp.sdc.vendorsoftwareproduct.errors;
3 import org.openecomp.sdc.common.errors.ErrorCategory;
4 import org.openecomp.sdc.common.errors.ErrorCode;
6 public class DeleteNicErrorBuilder {
7 private static final String DELETE_NIC_NOT_ALLOWED_MSG =
8 "NIC cannot be deleted for VSPs onboarded with HEAT.";
10 public static ErrorCode getDeleteNicForHeatOnboardedVspErrorBuilder(){
11 ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
12 builder.withId(VendorSoftwareProductErrorCodes.DELETE_NIC_NOT_ALLOWED);
13 builder.withCategory(ErrorCategory.APPLICATION);
14 builder.withMessage(String.format(DELETE_NIC_NOT_ALLOWED_MSG));
15 return builder.build();