Add collaboration feature
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / errors / OnboardingMethodErrorBuilder.java
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 import static org.openecomp.sdc.vendorsoftwareproduct.errors.VendorSoftwareProductErrorCodes.VSP_INVALID_ONBOARDING_METHOD;
7
8 /**
9  * The type Onboarding method error builder.
10  */
11 public class OnboardingMethodErrorBuilder {
12
13   private static final String VSP_INVALID_ONBOARDING_METHOD_MSG =
14       "The onboardingMethod value doesn't meet the expected attribute value.";
15
16   /**
17    * Get invalid onboarding method error builder error code.
18    *
19    * @return the error code
20    */
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();
27   }
28 }