Serializable
public class ProcessingException extends RuntimeException
Constructor | Description |
---|---|
ProcessingException(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.
|
Modifier and Type | Method | Description |
---|---|---|
AnnotationMirror |
getAnnotation() |
The annotation where the error occurred.
|
AnnotationValue |
getAnnotationValue() |
The value for the annotation that is invalid.
|
Element |
getElement() |
The element the error occurred on.
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ProcessingException(Element element, String message)
element
- the element the error occurs onmessage
- the messagepublic ProcessingException(Element element, AnnotationMirror annotation, String message)
element
- the element the error occurs onannotation
- the annotation the error occurred onmessage
- the messagepublic ProcessingException(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String message)
element
- the element the error occurs onannotation
- the annotation the error occurred onannotationValue
- the annotation valuemessage
- the messagepublic ProcessingException(Element element, String format, Object... args)
element
- the element the error occurs onformat
- the format for the messageargs
- the arguments for the formatpublic ProcessingException(Element element, AnnotationMirror annotation, String format, Object... args)
element
- the element the error occurs onannotation
- the annotation the error occurred onformat
- the format for the messageargs
- the arguments for the formatpublic ProcessingException(Element element, AnnotationMirror annotation, AnnotationValue annotationValue, String format, Object... args)
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 formatpublic Element getElement()
public AnnotationMirror getAnnotation()
null
if the error did not occur on an annotationpublic AnnotationValue getAnnotationValue()
null
Copyright © 2018. All rights reserved.