Skip to content

Most visited

Recently visited

navigation
Added in API level 1

AnnotationTypeMismatchException

public class AnnotationTypeMismatchException
extends RuntimeException

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


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.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

AnnotationTypeMismatchException

Added in API level 1
AnnotationTypeMismatchException (Method element, 
                String foundType)

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

element

Added in API level 1
Method element ()

Returns the method object for the invalid type.

Returns
Method a Method instance.

foundType

Added in API level 1
String foundType ()

Returns the invalid type.

Returns
String a string describing the invalid data.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.