package org.requirementsascode.exception;

import org.requirementsascode.Step;

/**
 * Exception that is thrown when the use case model runner tries to to access a certain part
 * of a use case step, but that part does not exist.
 * 
 * @author b_muth
 *
 */
public class MissingUseCaseStepPart extends RuntimeException{
	private static final long serialVersionUID = 1154053717206525045L;
	
	public MissingUseCaseStepPart(Step useCaseStep, String partName) {
		super(exceptionMessage(useCaseStep, partName));
	}

	private static String exceptionMessage(Step useCaseStep, String partName) {
		String message = "Use Case Step \"" + useCaseStep + "\" has no defined " + partName + 
			" part! Please have a look and update your Use Case Model for this step!";
		return message;
	}
}

@@ -36,16 +36,46 @@
 ption;%0A%0A
+import java.io.Serializable;%0A%0A
 import o
@@ -342,16 +342,40 @@
 xception
+ implements Serializable
 %7B%0A%09priva

Make MissingUseCaseStepPart class Serializable