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 NicNetworkIdNotAllowedExternalNetworkErrorBuilder {
7 private static final String NETWORKID_NOT_ALLOWED_FOR_EXTERNAL_NETWORK_MSG =
8 "Invalid request,NetworkId not allowed for External Networks";
9 private final ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
10 public NicNetworkIdNotAllowedExternalNetworkErrorBuilder(){
11 builder.withId(VendorSoftwareProductErrorCodes.NETWORKID_NOT_ALLOWED_FOR_EXTERNAL_NETWORK);
12 builder.withCategory(ErrorCategory.APPLICATION);
13 builder.withMessage(String.format(NETWORKID_NOT_ALLOWED_FOR_EXTERNAL_NETWORK_MSG));
16 public ErrorCode build() {
17 return builder.build();