Package org.glassfish.apf.impl
Class DefaultErrorHandler
- java.lang.Object
-
- 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
Constructors Constructor Description DefaultErrorHandler()Creates a new ErrorHandler with the default loggerDefaultErrorHandler(Logger logger)Creates a new ErrorHandler with the provided looger;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(AnnotationProcessorException ape)Receive notification of an errorvoidfine(AnnotationProcessorException ape)Receive notication of a fine error messagevoidwarning(AnnotationProcessorException ape)Receive notification of a warning
-
-
-
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:
finein interfaceErrorHandler- Parameters:
ape- The warning information- Throws:
any- exception to stop the annotation processingAnnotationProcessorException
-
warning
public void warning(AnnotationProcessorException ape) throws AnnotationProcessorException
Receive notification of a warning- Specified by:
warningin interfaceErrorHandler- Parameters:
ape- The warning information- Throws:
any- exception to stop the annotation processingAnnotationProcessorException
-
error
public void error(AnnotationProcessorException ape) throws AnnotationProcessorException
Receive notification of an error- Specified by:
errorin interfaceErrorHandler- Parameters:
ape- The error information- Throws:
amy- exception to stop the annotation processingAnnotationProcessorException
-
-