net.jqwik.api.lifecycle.CannotResolveParameterException Maven / Gradle / Ivy
package net.jqwik.api.lifecycle;
import java.lang.reflect.*;
import org.apiguardian.api.*;
import net.jqwik.api.*;
import static org.apiguardian.api.API.Status.*;
/**
* Experimental feature. Not ready for public usage yet.
*/
@API(status = MAINTAINED, since = "1.4.0")
public class CannotResolveParameterException extends JqwikException {
public CannotResolveParameterException(ParameterResolutionContext context, String info) {
this(context.parameter(), info);
}
@API(status = INTERNAL)
public CannotResolveParameterException(Parameter parameter, String info) {
super(createMessage(parameter, info));
}
private static String createMessage(Parameter parameter, String info) {
return String.format("Parameter [%s] cannot be resolved:%n\t%s", parameter, info);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy