public class AnnotationProcessorException extends Exception
| Constructor and Description |
|---|
AnnotationProcessorException(String message)
Creats a new annotation exception
|
AnnotationProcessorException(String message,
AnnotationInfo locator)
Creates a new annotation exception
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationInfo |
getLocator()
Return information about the annotation and annotated element
which caused the exception or null if it is not available.
|
String |
getMessage()
Return a meaningful string explaining the exception cause
|
boolean |
isFatal() |
void |
setFatal(boolean fatal)
Sets wether is exception is considered as fatal to the annotation
processing.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic AnnotationProcessorException(String message)
message - describing the exception causepublic AnnotationProcessorException(String message, AnnotationInfo locator)
message - describing the exception causelocator - gives information about the annotation and
the annotated element which caused the exceptionpublic String getMessage()
getMessage in class Throwablepublic AnnotationInfo getLocator()
public String toString()
public boolean isFatal()
public void setFatal(boolean fatal)
true - if the annotation processing should stopCopyright © 2019. All rights reserved.