Android APIs
public class

AnnotationTypeMismatchException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.annotation.AnnotationTypeMismatchException

Class Overview

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

Summary

Public Constructors
AnnotationTypeMismatchException(Method element, String foundType)
Constructs an instance for the given type element and the type found.
Public Methods
Method element()
Returns the method object for the invalid type.
String foundType()
Returns the invalid type.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AnnotationTypeMismatchException (Method element, String foundType)

Added in API level 1

Constructs an instance for the given type element and the type found.

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

Public Methods

public Method element ()

Added in API level 1

Returns the method object for the invalid type.

Returns
Method a Method instance.

public String foundType ()

Added in API level 1

Returns the invalid type.

Returns
String a string describing the invalid data.