package org.jbehave.core.configuration; import java.lang.annotation.Annotation; @SuppressWarnings("serial") /** * Thrown when an annotation is required and not found. */ public class AnnotationRequired extends RuntimeException { /** * Used when an annotation is required and not found * * @param annotatedClass the annotated Class * @param missingAnnotation the missing Annotation class */ public AnnotationRequired(Class<?> annotatedClass, Class<? extends Annotation> missingAnnotation) { super(annotatedClass + " requires to be annotated by " + missingAnnotation + "."); } }