public class InvalidContainerAnnotationError extends AnnotationFormatError
AnnotatedElement
,
Serialized FormConstructor 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, toString
public 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 null
public InvalidContainerAnnotationError(Throwable cause)
(cause == null ?
null : cause.toString())
(which typically contains the class
and detail message of cause
).cause
- the cause, may be null
public InvalidContainerAnnotationError(String message, Throwable cause, Annotation container, Class<? extends Annotation> annotationType)
message
- the detail messagecause
- the cause, may be null
container
- the erroneous container instance, may be
null
annotationType
- the annotation type intended to be
contained, may be null
public Annotation getContainer()
null
public 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