Save This Page
Home » openjdk-7 » java » lang » annotation » [javadoc | source]
java.lang.annotation
public class: IncompleteAnnotationException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            java.lang.annotation.IncompleteAnnotationException

All Implemented Interfaces:
    Serializable

Thrown to indicate that a program has attempted to access an element of an annotation type that was added to the annotation type definition after the annotation was compiled (or serialized). This exception will not be thrown if the new element has a default value.
Fields inherited from java.lang.RuntimeException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public IncompleteAnnotationException(Class annotationType,
    String elementName) 
    Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation type.
    Parameters:
    annotationType - the Class object for the annotation type
    elementName - the name of the missing element
Method from java.lang.annotation.IncompleteAnnotationException Summary:
annotationType,   elementName
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.annotation.IncompleteAnnotationException Detail:
 public Class annotationType() 
    Returns the Class object for the annotation type with the missing element.
 public String elementName() 
    Returns the name of the missing element.