Package com.sun.xml.bind.v2.model.core
Interface ErrorHandler
- All Known Implementing Classes:
IllegalAnnotationsException.Builder
public interface ErrorHandler
listen to static errors found during building a JAXB model from a set of classes.
Implemented by the client of
ModelBuilderI
.
All the static errors have to be reported while constructing a
model, not when a model is used (IOW, until the ModelBuilderI
completes.
Internally, ModelBuilderI
wraps an ErrorHandler
and all the model
components should report errors through it.
IllegalAnnotationException
is a checked exception to remind
the model classes to report it rather than to throw it.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Receives a notification for an error in the annotated code.
-
Method Details
-
error
Receives a notification for an error in the annotated code.- Parameters:
e
-
-