1 package org.onap.sdc.workflow.services.exceptions;
3 import org.onap.sdc.workflow.persistence.types.WorkflowVersionState;
5 public class VersionStateModificationException extends RuntimeException {
7 public VersionStateModificationException(String workflowId, String versionId, WorkflowVersionState sourceState,
8 WorkflowVersionState targetState) {
9 super(String.format("Workflow %s, version %s: state can not be changed from %s to %s", workflowId, versionId,
10 sourceState.name(), targetState.name()));