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

net.jqwik.api.lifecycle.CannotResolveParameterException Maven / Gradle / Ivy

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