Package org.jboss.logging.processor.apt
Class ProcessingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jboss.logging.processor.apt.ProcessingException
- All Implemented Interfaces:
Serializable
An exception that can be used to log which element caused the error.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotationMirror
private final AnnotationValue
private final Element
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingException
(Element element, String message) Creates a new exception.ProcessingException
(Element element, String format, Object... args) Creates a new exception.ProcessingException
(Element element, AnnotationMirror annotation, String message) Creates a new exception.ProcessingException
(Element element, AnnotationMirror annotation, String format, Object... args) Creates a new exception.ProcessingException
(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String message) Creates a new exception.ProcessingException
(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String format, Object... args) Creates a new exception. -
Method Summary
Modifier and TypeMethodDescriptionThe annotation where the error occurred.The value for the annotation that is invalid.The element the error occurred on.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
element
-
annotation
-
annotationValue
-
-
Constructor Details
-
ProcessingException
Creates a new exception.- Parameters:
element
- the element the error occurs onmessage
- the message
-
ProcessingException
Creates a new exception.- Parameters:
element
- the element the error occurs onannotation
- the annotation the error occurred onmessage
- the message
-
ProcessingException
public ProcessingException(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String message) Creates a new exception.- Parameters:
element
- the element the error occurs onannotation
- the annotation the error occurred onannotationValue
- the annotation valuemessage
- the message
-
ProcessingException
Creates a new exception.- Parameters:
element
- the element the error occurs onformat
- the format for the messageargs
- the arguments for the format
-
ProcessingException
public ProcessingException(Element element, AnnotationMirror annotation, String format, Object... args) Creates a new exception.- Parameters:
element
- the element the error occurs onannotation
- the annotation the error occurred onformat
- the format for the messageargs
- the arguments for the format
-
ProcessingException
public ProcessingException(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String format, Object... args) Creates a new exception.- Parameters:
element
- the element the error occurs onannotation
- the annotation the error occurred onannotationValue
- the annotation valueformat
- the format for the messageargs
- the arguments for the format
-
-
Method Details
-
getElement
The element the error occurred on.- Returns:
- the element
-
getAnnotation
The annotation where the error occurred.- Returns:
- the annotation or
null
if the error did not occur on an annotation
-
getAnnotationValue
The value for the annotation that is invalid.- Returns:
- the annotation value or
null
-