Improve error's message readability
[sdc.git] / openecomp-be / backend / openecomp-sdc-vendor-software-product-manager / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / errors / VendorSoftwareProductInvalidErrorBuilder.java
index 1555bd7..49ef093 100644 (file)
  */
 package org.openecomp.sdc.vendorsoftwareproduct.errors;
 
+import lombok.AccessLevel;
+import lombok.NoArgsConstructor;
 import org.openecomp.sdc.common.errors.ErrorCategory;
 import org.openecomp.sdc.common.errors.ErrorCode;
 import org.openecomp.sdc.versioning.dao.types.Version;
 
+@NoArgsConstructor(access = AccessLevel.PRIVATE)
 public class VendorSoftwareProductInvalidErrorBuilder {
 
-    private static final String VSP_INVALID_MSG =
-        "Vendor software product with Id %s and version %s is invalid - does not contain " + "service model.";
-    private static final String VSP_INVALID_MISSING_DEPLOYMENT_FLAVOR_MSG =
-        "VSP has to have a " + "minimum of one Deployment Flavor defined for being able to be instantiated.Please add a "
-            + "Deployment Flavor and re-submit the VSP.";
-    private static final String CANDIDATE_DATA_NOT_PROCESSED_OR_ABORTED = "Uploaded network package" + " file %s was not processed/aborted.";
-    private static final String INVALID_PROCESSED_CANDIDATE = "Uploaded network package file %s" + " is invalid and need to be aborted";
-
-    private VendorSoftwareProductInvalidErrorBuilder() {
-    }
+    private static final String VSP_INVALID_MSG = "Vendor software product with Id %s and version %s is invalid - does not contain service model.";
+    private static final String VSP_INVALID_MISSING_DEPLOYMENT_FLAVOR_MSG = "VSP has to have a minimum of one Deployment Flavor defined for being able to be instantiated.Please add a Deployment Flavor and re-submit the VSP.";
+    private static final String CANDIDATE_DATA_NOT_PROCESSED_OR_ABORTED = "Uploaded network package file %s was not processed/aborted.";
+    private static final String INVALID_PROCESSED_CANDIDATE = "Uploaded network package file %s is invalid and need to be aborted";
 
     /**
      * Instantiates a new Vendor software product invalid error builder.