Build 1.0_r1(from source)

java.lang.annotation
Class AnnotationTypeMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.annotation.AnnotationTypeMismatchException
All Implemented Interfaces:
Serializable

public class AnnotationTypeMismatchException
extends RuntimeException

Indicates that an annotation type has changed since it was compiled or serialized.

Since:
Android 1.0
See Also:
Serialized Form

Constructor Summary
AnnotationTypeMismatchException(Method element, String foundType)
          Constructs an instance for the given type element and the type found.
 
Method Summary
 Method element()
          Returns the method object for the invalid type.
 String foundType()
          Returns the invalid type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationTypeMismatchException

public AnnotationTypeMismatchException(Method element,
                                       String foundType)
Constructs an instance for the given type element and the type found.

Parameters:
element - the annotation type element.
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
Method Detail

element

public Method element()
Returns the method object for the invalid type.

Returns:
a Method instance.
Since:
Android 1.0

foundType

public String foundType()
Returns the invalid type.

Returns:
a string describing the invalid data.
Since:
Android 1.0

Build 1.0_r1(from source)

Please submit a feedback, bug or feature