Top Description Constructors Methods
org.jdom2.input.sax

public Class BuilderErrorHandler

extends Object
implements ErrorHandler
Class Inheritance
All Implemented Interfaces
org.xml.sax.ErrorHandler
Imports
org.xml.sax.*

The standard JDOM error handler implementation.
Author
Jason Hunter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
error(SAXParseException
SAXParseException that occurred.
exception
)

Implements org.xml.sax.ErrorHandler.error.

This method is called in response to an error that has occurred; this indicates that a rule was broken, typically in validation, but that parsing could reasonably continue.
public void
fatalError(SAXParseException
SAXParseException that occurred.
exception
)

Implements org.xml.sax.ErrorHandler.fatalError.

This method is called in response to a fatal error; this indicates that a rule has been broken that makes continued parsing either impossible or an almost certain waste of time.
public void
warning(SAXParseException
SAXParseException that occurred.
exception
)

Implements org.xml.sax.ErrorHandler.warning.

This method is called when a warning has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BuilderErrorHandlerback to summary
public BuilderErrorHandler()

Method Detail

errorback to summary
public void error(SAXParseException exception) throws SAXException

Implements org.xml.sax.ErrorHandler.error.

This method is called in response to an error that has occurred; this indicates that a rule was broken, typically in validation, but that parsing could reasonably continue. The implementation of this method here is to rethrow the exception.

Parameters
exception:SAXParseException

SAXParseException that occurred.

Annotations
@Override
Exceptions
SAXException:
when things go wrong
fatalErrorback to summary
public void fatalError(SAXParseException exception) throws SAXException

Implements org.xml.sax.ErrorHandler.fatalError.

This method is called in response to a fatal error; this indicates that a rule has been broken that makes continued parsing either impossible or an almost certain waste of time. The implementation of this method here is to rethrow the exception.

Parameters
exception:SAXParseException

SAXParseException that occurred.

Annotations
@Override
Exceptions
SAXException:
when things go wrong
warningback to summary
public void warning(SAXParseException exception) throws SAXException

Implements org.xml.sax.ErrorHandler.warning.

This method is called when a warning has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing. The implementation of this method here is a "no op".

Parameters
exception:SAXParseException

SAXParseException that occurred.

Annotations
@Override
Exceptions
SAXException:
when things go wrong