Class AnnotationProcessingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AnnotationProcessingException
    extends java.lang.RuntimeException
    Indicates an error during annotation processing. Should only be thrown in non-recoverable situations such as errors due to incomplete compilations etc. Expected errors to be propagated to the user of the annotation processor should be raised using the FormattingMessager API instead.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.lang.model.element.AnnotationMirror annotationMirror  
      private javax.lang.model.element.AnnotationValue annotationValue  
      private javax.lang.model.element.Element element  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationProcessingException​(java.lang.String message)  
      AnnotationProcessingException​(java.lang.String message, javax.lang.model.element.Element element)  
      AnnotationProcessingException​(java.lang.String message, javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror)  
      AnnotationProcessingException​(java.lang.String message, javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror, javax.lang.model.element.AnnotationValue annotationValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.lang.model.element.AnnotationMirror getAnnotationMirror()  
      javax.lang.model.element.AnnotationValue getAnnotationValue()  
      javax.lang.model.element.Element getElement()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • element

        private final javax.lang.model.element.Element element
      • annotationMirror

        private final javax.lang.model.element.AnnotationMirror annotationMirror
      • annotationValue

        private final javax.lang.model.element.AnnotationValue annotationValue
    • Constructor Detail

      • AnnotationProcessingException

        public AnnotationProcessingException​(java.lang.String message)
      • AnnotationProcessingException

        public AnnotationProcessingException​(java.lang.String message,
                                             javax.lang.model.element.Element element)
      • AnnotationProcessingException

        public AnnotationProcessingException​(java.lang.String message,
                                             javax.lang.model.element.Element element,
                                             javax.lang.model.element.AnnotationMirror annotationMirror)
      • AnnotationProcessingException

        public AnnotationProcessingException​(java.lang.String message,
                                             javax.lang.model.element.Element element,
                                             javax.lang.model.element.AnnotationMirror annotationMirror,
                                             javax.lang.model.element.AnnotationValue annotationValue)
    • Method Detail

      • getElement

        public javax.lang.model.element.Element getElement()
      • getAnnotationMirror

        public javax.lang.model.element.AnnotationMirror getAnnotationMirror()
      • getAnnotationValue

        public javax.lang.model.element.AnnotationValue getAnnotationValue()