1 package org.openecomp.sdc.vendorsoftwareproduct.errors;
3 import org.openecomp.sdc.common.errors.ErrorCategory;
4 import org.openecomp.sdc.common.errors.ErrorCode;
6 import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.VSP_INVALID_ONBOARDING_METHOD;
9 * The type Onboarding method error builder.
11 public class OnboardingMethodErrorBuilder {
13 private static final String VSP_INVALID_ONBOARDING_METHOD_MSG =
14 "The onboardingMethod value doesn't meet the expected attribute value.";
17 * Get invalid onboarding method error builder error code.
19 * @return the error code
21 public static ErrorCode getInvalidOnboardingMethodErrorBuilder() {
22 ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
23 builder.withId(VSP_INVALID_ONBOARDING_METHOD);
24 builder.withCategory(ErrorCategory.APPLICATION);
25 builder.withMessage(VSP_INVALID_ONBOARDING_METHOD_MSG);
26 return builder.build();