io.cucumber.java.InvalidMethodException Maven / Gradle / Ivy
The newest version!
package io.cucumber.java;
import io.cucumber.core.backend.CucumberBackendException;
import java.lang.reflect.Method;
final class InvalidMethodException extends CucumberBackendException {
private InvalidMethodException(String message) {
super(message);
}
static InvalidMethodException createInvalidMethodException(Method method, Class> glueCodeClass) {
return new InvalidMethodException(
"You're not allowed to extend classes that define Step Definitions or hooks. "
+ glueCodeClass + " extends " + method.getDeclaringClass());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy