Top Description Fields Constructors Methods
org.apache.xerces.jaxp.validation

pack-priv final Class DraconianErrorHandler

extends Object
implements ErrorHandler
Class Inheritance
All Implemented Interfaces
org.xml.sax.ErrorHandler
Imports
org.xml.sax.ErrorHandler, .SAXException, .SAXParseException

ErrorHandler that throws all errors and fatal errors.
Author
Kohsuke Kawaguchi ([email protected])
Version
$Id: DraconianErrorHandler.java 447235 2006-09-18 05:01:44Z mrglavas $

Field Summary

Modifier and TypeField and Description
private static final DraconianErrorHandler
ERROR_HANDLER_INSTANCE

Singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
error(SAXParseException
The error information encapsulated in a SAX parse exception.
e
)

Implements org.xml.sax.ErrorHandler.error.

Error: Throws back SAXParseException.
public void
fatalError(SAXParseException
The error information encapsulated in a SAXParseException.
e
)

Implements org.xml.sax.ErrorHandler.fatalError.

Fatal Error: Throws back SAXParseException.
public static DraconianErrorHandler
getInstance()

Returns the one and only instance of this error handler.

public void
warning(SAXParseException
The warning information encapsulated in a SAX parse exception.
e
)

Implements org.xml.sax.ErrorHandler.warning.

Warning

Ignore.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ERROR_HANDLER_INSTANCEback to summary
private static final DraconianErrorHandler ERROR_HANDLER_INSTANCE

Singleton instance.

Constructor Detail

DraconianErrorHandlerback to summary
private DraconianErrorHandler()

Method Detail

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

Implements org.xml.sax.ErrorHandler.error.

Error: Throws back SAXParseException.

Parameters
e:SAXParseException

Doc from org.xml.sax.ErrorHandler.error.

The error information encapsulated in a SAX parse exception.

Exceptions
SAXException:

Doc from org.xml.sax.ErrorHandler.error.

Any SAX exception, possibly wrapping another exception.

fatalErrorback to summary
public void fatalError(SAXParseException e) throws SAXException

Implements org.xml.sax.ErrorHandler.fatalError.

Fatal Error: Throws back SAXParseException.

Parameters
e:SAXParseException

Doc from org.xml.sax.ErrorHandler.fatalError.

The error information encapsulated in a SAXParseException.

Exceptions
SAXException:

Doc from org.xml.sax.ErrorHandler.fatalError.

if the application chooses to discontinue the parsing

getInstanceback to summary
public static DraconianErrorHandler getInstance()

Returns the one and only instance of this error handler.

warningback to summary
public void warning(SAXParseException e) throws SAXException

Implements org.xml.sax.ErrorHandler.warning.

Warning

Ignore.

Parameters
e:SAXParseException

Doc from org.xml.sax.ErrorHandler.warning.

The warning information encapsulated in a SAX parse exception.

Exceptions
SAXException:

Doc from org.xml.sax.ErrorHandler.warning.

Any SAX exception, possibly wrapping another exception.