3ecf6f1a2ef331961f10eb7337e3b377ae013553
[sdc.git] /
1 package org.openecomp.sdc.vendorsoftwareproduct.errors;
2
3 import org.openecomp.sdc.common.errors.ErrorCategory;
4 import org.openecomp.sdc.common.errors.ErrorCode;
5
6 public class DeleteNicErrorBuilder {
7     private static final String DELETE_NIC_NOT_ALLOWED_MSG =
8             "NIC cannot be deleted for VSPs onboarded with HEAT.";
9
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();
16     }
17
18 }