Serializable
public class AnnotationTypeMismatchException extends RuntimeException
AnnotatedElement
,
Serialized FormConstructor | Description |
---|---|
AnnotationTypeMismatchException(Method element,
String foundType) |
Constructs an AnnotationTypeMismatchException for the specified
annotation type element and found data type.
|
Modifier and Type | Method | Description |
---|---|---|
Method |
element() |
Returns the
Method object for the incorrectly typed element. |
String |
foundType() |
Returns the type of data found in the incorrectly typed element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AnnotationTypeMismatchException(Method element, String foundType)
element
- the Method
object for the annotation
element, may be null
foundType
- the (erroneous) type of data found in the annotation.
This string may, but is not required to, contain the value
as well. The exact format of the string is unspecified,
may be null
.public Method element()
Method
object for the incorrectly typed element.
The value may be unavailable if this exception has been
serialized and then read back in.Method
object for the incorrectly typed
element, or null
if unavailablepublic String foundType()
null
. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps