public class InvalidContainerAnnotationError extends AnnotationFormatError
AnnotatedElement,
Serialized Form| Constructor and Description |
|---|
InvalidContainerAnnotationError(String message)
Constructs a new InvalidContainerAnnotationError with the
specified detail message.
|
InvalidContainerAnnotationError(String message,
Throwable cause)
Constructs a new InvalidContainerAnnotationError with the specified
detail message and cause.
|
InvalidContainerAnnotationError(String message,
Throwable cause,
Annotation container,
Class<? extends Annotation> annotationType)
Constructs InvalidContainerAnnotationError for the specified
container instance and contained annotation type.
|
InvalidContainerAnnotationError(Throwable cause)
Constructs a new InvalidContainerAnnotationError with the
specified cause and a detail message of
(cause == null ?
null : cause.toString()) (which typically contains the class
and detail message of cause). |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
getAnnotationType()
Returns the annotation type intended to be contained.
|
Annotation |
getContainer()
Returns the erroneous container.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidContainerAnnotationError(String message)
message - the detail message.public InvalidContainerAnnotationError(String message, Throwable cause)
cause is not automatically incorporated in
this error's detail message.message - the detail messagecause - the cause, may be nullpublic InvalidContainerAnnotationError(Throwable cause)
(cause == null ?
null : cause.toString()) (which typically contains the class
and detail message of cause).cause - the cause, may be nullpublic InvalidContainerAnnotationError(String message, Throwable cause, Annotation container, Class<? extends Annotation> annotationType)
message - the detail messagecause - the cause, may be nullcontainer - the erroneous container instance, may be
nullannotationType - the annotation type intended to be
contained, may be nullpublic Annotation getContainer()
nullpublic Class<? extends Annotation> getAnnotationType()
null if the annotation type intended to be contained
could not be determined.null if unknown 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, 2013, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-0