All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.requirementsascode.exception.MissingUseCaseStepPart Maven / Gradle / Ivy

There is a newer version: 2.0
Show newest version
package org.requirementsascode.exception;

import java.io.Serializable;

import org.requirementsascode.Step;

/**
 * Exception that is thrown when the model runner tries to to access a certain
 * part of a step, but that part does not exist.
 * 
 * @author b_muth
 *
 */
public class MissingUseCaseStepPart extends RuntimeException implements Serializable {
	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 = "Step \"" + useCaseStep + "\" has no defined " + partName
				+ " part! Please have a look and update your model for this step!";
		return message;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy