summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java
diff options
context:
space:
mode:
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java
index 5626cfe6f..3ddeea1c4 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/DGWorkflowNotFoundException.java
@@ -25,14 +25,26 @@
package org.onap.appc.requesthandler.exceptions;
-public class DGWorkflowNotFoundException extends Exception {
+import com.att.eelf.i18n.EELFResourceManager;
+import org.onap.appc.executor.objects.LCMCommandStatus;
+import org.onap.appc.executor.objects.Params;
+import org.onap.appc.i18n.Msg;
+import org.onap.appc.logging.LoggingConstants;
+
+public class DGWorkflowNotFoundException extends RequestValidationException {
public final String workflowModule;
public final String workflowName;
public final String workflowVersion;
- public DGWorkflowNotFoundException(String message,String workflowModule,String workflowName,String workflowVersion){
+ public DGWorkflowNotFoundException(String message,String workflowModule,String workflowName,String workflowVersion,String vnfType,String action){
super(message);
this.workflowModule = workflowModule;
this.workflowName = workflowName;
this.workflowVersion = workflowVersion;
+ super.setLcmCommandStatus(LCMCommandStatus.DG_WORKFLOW_NOT_FOUND);
+ super.setParams(new Params().addParam("actionName", action)
+ .addParam("dgModule", workflowModule).addParam("dgName", workflowName).addParam("dgVersion", workflowVersion));
+ super.setLogMessage(EELFResourceManager.format(Msg.APPC_WORKFLOW_NOT_FOUND, vnfType, action));
+ super.setTargetEntity(LoggingConstants.TargetNames.APPC);
+ super.setTargetService(LoggingConstants.TargetNames.WORKFLOW_MANAGER);
}
}