public class InvalidAnnotationException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
InvalidAnnotationException()
Create a new
InvalidAnnotationException object. |
InvalidAnnotationException(AnnotationType annotationType,
Item itemType)
Create a new
InvalidAnnotationException object when
the annotation type cannot be used for the specified item type. |
InvalidAnnotationException(java.lang.String message)
Create a new
InvalidAnnotationException object with the
specified message . |
private static final long serialVersionUID
public InvalidAnnotationException()
InvalidAnnotationException
object.public InvalidAnnotationException(java.lang.String message)
InvalidAnnotationException
object with the
specified message
.message
- The message to throw with the exceptionpublic InvalidAnnotationException(AnnotationType annotationType, Item itemType)
InvalidAnnotationException
object when
the annotation type cannot be used for the specified item type.annotationType
- The annotation type used to annotate.itemType
- Kind of item that couldn't be annotated.