FileDocCategorySizeDatePackage
VerifierErrorHandler.javaAPI DocGlassfish v2 API3733Fri May 04 22:33:24 BST 2007com.sun.enterprise.tools.verifier

VerifierErrorHandler

public class VerifierErrorHandler extends com.sun.enterprise.deployment.annotation.impl.DefaultErrorHandler
This error handler class is used by the deployment code while building descriptors. All annotation processor exceptions are eaten by this class so that verifier can continue execution and report other failures.
author
Vikas Awasthi

Fields Summary
private Logger
logger
private ResultManager
resultManager
Constructors Summary
public VerifierErrorHandler(ResultManager resultManager)


       
        this.resultManager = resultManager;
    
Methods Summary
public voiderror(com.sun.enterprise.deployment.annotation.AnnotationProcessorException ape)

        logger.fine("Error : " + ape); // NOI18N
        AnnotationInfo info = ape.getLocator();
        String msg = (info==null) ? 
            ape.getMessage() :
            StringManagerHelper.getLocalStringsManager().getLocalString(
                "com.sun.enterprise.tools.verifier.annotation.error", // NOI18N
                "{3}\n annotation: {0}\n symbol: {1}\n location: {2}\n", // NOI18N
                new Object[] {info.getAnnotation(), info.getElementType(), 
                    info.getAnnotatedElement(), ape.getMessage()});
        LogRecord logRecord = new LogRecord(Level.SEVERE, msg);
        resultManager.log(logRecord);