fix sonar issue 86/93086/1
authorsarada prasad sahoo <sarada.prasad.sahoo@huawei.com>
Thu, 8 Aug 2019 13:58:30 +0000 (19:28 +0530)
committersarada prasad sahoo <sarada.prasad.sahoo@huawei.com>
Thu, 8 Aug 2019 13:58:30 +0000 (19:28 +0530)
fix sonar issues

Issue-ID: SO-1811
Signed-off-by: sarada prasad sahoo <sarada.prasad.sahoo@huawei.com>
Change-Id: I79db093a27165fd5d54dfab1c1d25749bf6df533

mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/InstanceManagement.java

index 554c794..15572f2 100644 (file)
@@ -216,7 +216,7 @@ public class InstanceManagement {
 
         try {
             recipeLookupResult = getCustomWorkflowUri(workflowUuid);
-        } catch (IOException e) {
+        } catch (Exception e) {
             ErrorLoggerInfo errorLoggerInfo =
                     new ErrorLoggerInfo.Builder(MessageEnum.APIH_REQUEST_VALIDATION_ERROR, ErrorCode.SchemaError)
                             .errorSource(Constants.MSO_PROP_APIHANDLER_INFRA).build();
@@ -243,7 +243,7 @@ public class InstanceManagement {
         return recipeLookupResult;
     }
 
-    private RecipeLookupResult getCustomWorkflowUri(String workflowUuid) throws IOException {
+    private RecipeLookupResult getCustomWorkflowUri(String workflowUuid) {
 
         String recipeUri = null;
         Workflow workflow = catalogDbClient.findWorkflowByArtifactUUID(workflowUuid);