org.glassfish.apf.impl
Class DefaultErrorHandler

java.lang.Object
  extended by org.glassfish.apf.impl.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler

public class DefaultErrorHandler
extends Object
implements ErrorHandler

Default implementation of the ErrorHandler

Author:
Jerome Dochez

Constructor Summary
DefaultErrorHandler()
          Creates a new ErrorHandler with the default logger
DefaultErrorHandler(Logger logger)
          Creates a new ErrorHandler with the provided looger;
 
Method Summary
 void error(AnnotationProcessorException ape)
          Receive notification of an error
 void fine(AnnotationProcessorException ape)
          Receive notication of a fine error message
 void warning(AnnotationProcessorException ape)
          Receive notification of a warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Creates a new ErrorHandler with the default logger


DefaultErrorHandler

public DefaultErrorHandler(Logger logger)
Creates a new ErrorHandler with the provided looger;

Method Detail

fine

public void fine(AnnotationProcessorException ape)
          throws AnnotationProcessorException
Receive notication of a fine error message

Specified by:
fine in interface ErrorHandler
Parameters:
ape - The warning information
Throws:
any - exception to stop the annotation processing
AnnotationProcessorException

warning

public void warning(AnnotationProcessorException ape)
             throws AnnotationProcessorException
Receive notification of a warning

Specified by:
warning in interface ErrorHandler
Parameters:
ape - The warning information
Throws:
any - exception to stop the annotation processing
AnnotationProcessorException

error

public void error(AnnotationProcessorException ape)
           throws AnnotationProcessorException
Receive notification of an error

Specified by:
error in interface ErrorHandler
Parameters:
ape - The error information
Throws:
amy - exception to stop the annotation processing
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.