Enhance Activity Spec Update error message 75/38975/3
authorshrikantawachar <shrikant.awachar@amdocs.com>
Tue, 27 Mar 2018 08:58:17 +0000 (14:28 +0530)
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>
Wed, 28 Mar 2018 11:30:13 +0000 (11:30 +0000)
Updated error message

Change-Id: I679c1c407fc9a6cd452347844558f77fef448beb
Issue-ID: SDC-1048
Signed-off-by: shrikantawachar <shrikant.awachar@amdocs.com>
services/activity-spec/activity-spec-web/activity-spec-service/src/main/java/org/openecomp/activityspec/be/impl/ActivitySpecManagerImpl.java

index 0786323..b4a7354 100644 (file)
@@ -106,7 +106,7 @@ public class ActivitySpecManagerImpl implements ActivitySpecManager {
       throw new CoreException(new ErrorCode.ErrorCodeBuilder()
           .withCategory(ErrorCategory.APPLICATION)
           .withId(exception.code().id())
-          .withMessage("Name already in use").build());
+          .withMessage("name already in use").build());
     }
   }
 
@@ -216,8 +216,7 @@ public class ActivitySpecManagerImpl implements ActivitySpecManager {
     throw new CoreException(new ErrorCode.ErrorCodeBuilder()
         .withCategory(ErrorCategory.APPLICATION)
         .withId("ACTIVITYSPEC_NOT_FOUND")
-        .withMessage(String.format("Activity Spec With Id %s and version %s not found",
-            activitySpecId, version.getId()))
+        .withMessage("No Activity Spec found for the given identifiers")
         .build());
   }