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

com.tngtech.jgiven.exception.JGivenMissingRequiredScenarioStateException Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.exception;

import java.lang.reflect.Field;

/**
 * This exception is thrown if a scenario state has been marked as required,
 * but the state has not been provided.
 */
public class JGivenMissingRequiredScenarioStateException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public JGivenMissingRequiredScenarioStateException( Field field ) {
        super( "The field " + field.getName() + " is required but has not been provided." );
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy