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

io.cucumber.java.InvalidMethodException Maven / Gradle / Ivy

There is a newer version: 7.18.1
Show 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