Top Description Methods
org.glassfish.jaxb.core.v2.model.core

public Interface ErrorHandler

Known Direct Implementers
org.glassfish.jaxb.runtime.v2.runtime.IllegalAnnotationsException.Builder, com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl.ErrorHandlerImpl
Imports
org.glassfish.jaxb.core.v2.runtime.IllegalAnnotationException

listen to static errors found during building a JAXB model from a set of classes. Implemented by the client of org.glassfish.jaxb.core.v2.model.impl.ModelBuilderI.

All the static errors have to be reported while constructing a model, not when a model is used (IOW, until the org.glassfish.jaxb.core.v2.model.impl.ModelBuilderI completes. Internally, org.glassfish.jaxb.core.v2.model.impl.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
org.glassfish.jaxb.core.v2.model.impl.ModelBuilderI

Method Summary

Modifier and TypeMethod and Description
public void
error(IllegalAnnotationException e)

Receives a notification for an error in the annotated code.

Method Detail

errorback to summary
public void error(IllegalAnnotationException e)

Receives a notification for an error in the annotated code.