1 package java.lang.annotation; 2 3 12 public class IncompleteAnnotationException extends RuntimeException { 13 private Class annotationType; 14 private String elementName; 15 16 17 24 public IncompleteAnnotationException( 25 Class <? extends Annotation > annotationType, 26 String elementName) { 27 super(annotationType.getName() + " missing element " + elementName); 28 29 this.annotationType = annotationType; 30 this.elementName = elementName; 31 } 32 33 40 public Class <? extends Annotation > annotationType() { 41 return annotationType; 42 } 43 44 49 public String elementName() { 50 return elementName; 51 } 52 } 53 | Popular Tags |