1 package org.openecomp.sdc.vendorsoftwareproduct.dao.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.INVALID_EXTENSION;
8 public class OrchestrationTemplateFileExtensionErrorBuilder {
9 private static final String INVALID_EXTENSION_MSG = "Invalid file extension. Valid extensions " +
11 private final ErrorCode.ErrorCodeBuilder builder = new ErrorCode.ErrorCodeBuilder();
13 public OrchestrationTemplateFileExtensionErrorBuilder(){
14 builder.withId(INVALID_EXTENSION);
15 builder.withCategory(ErrorCategory.APPLICATION);
16 builder.withMessage(String.format(INVALID_EXTENSION_MSG));
19 public ErrorCode build() {
20 return builder.build();