org.requirementsascode.exception.NoSuchElementInModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of requirementsascodecore Show documentation
Show all versions of requirementsascodecore Show documentation
Enables you to define and run executable use case specifications, in your code.
package org.requirementsascode.exception;
/**
* Exception that is thrown when an element should be in the model because it is
* referenced from somewhere, but it can't be found.
*
* @author b_muth
*
*/
public class NoSuchElementInModel extends RuntimeException{
private static final long serialVersionUID = -6636292150079241122L;
public NoSuchElementInModel(String elementName) {
super(exceptionMessage(elementName));
}
private static String exceptionMessage(String elementName) {
return "Element does not exist in model:" + elementName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy