FileDocCategorySizeDatePackage
AnnotationProcessorException.javaAPI DocGlassfish v2 API4047Fri May 04 22:30:20 BST 2007com.sun.enterprise.deployment.annotation

AnnotationProcessorException

public class AnnotationProcessorException extends Exception
Exception that denotes a warning or error condition in the annotation procesing tool
author
Jerome Dochez

Fields Summary
private final String
message
private final AnnotationInfo
locator
boolean
isFatal
Constructors Summary
public AnnotationProcessorException(String message)
Creats a new annotation exception

param
message describing the exception cause

    
                     
       
        this.message = message;
        this.locator = null;
    
public AnnotationProcessorException(String message, AnnotationInfo locator)
Creates a new annotation exception

param
message describing the exception cause
param
locator gives information about the annotation and the annotated element which caused the exception

        this.message = message;
        this.locator = locator;
    
Methods Summary
public AnnotationInfogetLocator()
Return information about the annotation and annotated element which caused the exception or null if it is not available.

return
the annotation info instance

        return locator;
    
public java.lang.StringgetMessage()
Return a meaningful string explaining the exception cause

return
the exception reason

        return message;
    
public booleanisFatal()

return
true if this exception was considered by the sender as being fatal to the annotations processing(i.e. it should stop).

        return isFatal;
    
public voidsetFatal(boolean fatal)
Sets wether is exception is considered as fatal to the annotation processing.

param
true if the annotation processing should stop

         this.isFatal = fatal;
     
public java.lang.StringtoString()

return
a meaningful description

        return (locator==null?message:message + "at " + locator);