768bee578c47569f68bfd0bee3283b78cb0c1eb3
[so.git] /
1 package org.openecomp.mso.bpmn.common.workflow.service;
2
3 import org.onap.so.bpmn.common.workflow.context.WorkflowResponse;
4
5 /**
6  * Exception thrown when an error occurs while processing the workflow.
7  * This encapsulates the workflow response so that the same can be sent back to api handler.
8  */
9 public class WorkflowProcessorException extends RuntimeException {
10     WorkflowResponse workflowResponse;
11
12     public WorkflowProcessorException(WorkflowResponse workflowResponse) {
13         this.workflowResponse = workflowResponse;
14     }
15
16     public WorkflowResponse getWorkflowResponse() {
17         return workflowResponse;
18     }
19 }