diff options
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java')
-rw-r--r-- | appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java index 85157e32f..498b6a44e 100644 --- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java +++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/exceptions/WorkflowNotFoundException.java @@ -25,13 +25,19 @@ package org.onap.appc.requesthandler.exceptions; -public class WorkflowNotFoundException extends Exception { +import org.onap.appc.executor.objects.LCMCommandStatus; +import org.onap.appc.executor.objects.Params; + +public class WorkflowNotFoundException extends RequestValidationException { public final String vnfTypeVersion; public final String command; public WorkflowNotFoundException(String message,String vnfTypeVersion,String command){ super(message); this.vnfTypeVersion = vnfTypeVersion; this.command = command; + super.setLcmCommandStatus(LCMCommandStatus.WORKFLOW_NOT_FOUND); + Params params = new Params().addParam("actionName", command).addParam("vnfTypeVersion", vnfTypeVersion); + super.setParams(params); } } |