1 | package net.sourceforge.retroweaver.runtime.java.lang.annotation; |
2 | |
3 | /** |
4 | * A mirror of java.lang.annotation.IncompleteAnnotationException. |
5 | * |
6 | * @author Toby Reyelts |
7 | */ |
8 | public class IncompleteAnnotationException extends RuntimeException { |
9 | |
10 | private final Class<? extends Annotation> annotationType_; |
11 | |
12 | private final String elementName_; |
13 | |
14 | public IncompleteAnnotationException(final Class<? extends Annotation> annotationType, final String elementName) { |
15 | super(elementName + " in " + annotationType); |
16 | this.annotationType_ = annotationType; |
17 | this.elementName_ = elementName; |
18 | } |
19 | |
20 | public Class<? extends Annotation> annotationType() { |
21 | return annotationType_; |
22 | } |
23 | |
24 | public String elementName() { |
25 | return elementName_; |
26 | } |
27 | |
28 | } |