001    package net.sourceforge.retroweaver.runtime.java.lang.annotation;
002    
003    /**
004     * A mirror of java.lang.annotation.IncompleteAnnotationException.
005     * 
006     * @author Toby Reyelts
007     */
008    public class IncompleteAnnotationException extends RuntimeException {
009    
010            private final Class<? extends Annotation> annotationType_;
011    
012            private final String elementName_;
013    
014            public IncompleteAnnotationException(final Class<? extends Annotation> annotationType, final String elementName) {
015                    super(elementName + " in " + annotationType);
016                    this.annotationType_ = annotationType;
017                    this.elementName_ = elementName;
018            }
019    
020            public Class<? extends Annotation> annotationType() {
021                    return annotationType_;
022            }
023    
024            public String elementName() {
025                    return elementName_;
026            }
027    
028    }