FileDocCategorySizeDatePackage
AnnotationTypeMismatchException.javaAPI DocAndroid 1.5 API2395Wed May 06 22:41:02 BST 2009java.lang.annotation

AnnotationTypeMismatchException

public class AnnotationTypeMismatchException extends RuntimeException
Indicates that an annotation type has changed since it was compiled or serialized.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private Method
element
private String
foundType
Constructors Summary
public AnnotationTypeMismatchException(Method element, String foundType)
Constructs an instance for the given type element and the type found.

param
element the annotation type element.
param
foundType the invalid type that was found. This is actually the textual type description found in the binary class representation, so it may not be human-readable.
since
Android 1.0


                                                                                                                   
         
        super(Messages.getString("annotation.1", element, foundType)); //$NON-NLS-1$
        this.element = element;
        this.foundType = foundType;
    
Methods Summary
public java.lang.reflect.Methodelement()
Returns the method object for the invalid type.

return
a {@link Method} instance.
since
Android 1.0

        return element;
    
public java.lang.StringfoundType()
Returns the invalid type.

return
a string describing the invalid data.
since
Android 1.0

        return foundType;