Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.xmlschema

public final Class ErrorReporter

extends BindingComponent
Class Inheritance
Imports
com.sun.tools.xjc.ErrorReceiver, com.sun.tools.xjc.reader.Ring, org.xml.sax.ErrorHandler, .Locator, .SAXParseException

Provides error report capability to other owner components by encapsulating user-specified ErrorHandler and exposing utlity methods.

This class also wraps SAXException to a RuntimeException so that the exception thrown inside the error handler can abort the process.

At the end of the day, we need to know if there was any error. So it is important that all the error messages go through this object. This is done by hiding the errorHandler from the rest of the components.

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final ErrorReceiver
errorReceiver

Error handler to report any binding error to.

Constructor Summary

AccessConstructor and Description
public
ErrorReporter()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
error(Locator loc, String prop, Object... args)

pack-priv void
warning(Locator loc, String prop, Object... args)

Inherited from com.sun.tools.xjc.reader.xmlschema.BindingComponent:
getClassSelectorgetErrorReporter

Field Detail

errorReceiverback to summary
private final ErrorReceiver errorReceiver

Error handler to report any binding error to. To report errors, use the error method.

Constructor Detail

ErrorReporterback to summary
public ErrorReporter()

Default constructor.

Method Detail

errorback to summary
pack-priv void error(Locator loc, String prop, Object... args)
warningback to summary
pack-priv void warning(Locator loc, String prop, Object... args)