Top Fields Constructors Methods
com.sun.org.apache.xerces.internal.jaxp

pack-priv Class DefaultValidationErrorHandler

extends DefaultHandler
Class Inheritance
Imports
com.sun.org.apache.xerces.internal.util.SAXMessageFormatter, java.util.Locale, org.xml.sax.SAXException, .SAXParseException, org.xml.sax.helpers.DefaultHandler

Field Summary

Modifier and TypeField and Description
private static int
private int
private Locale

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
error(SAXParseException
The error information encoded as an exception.
e
)

Overrides org.xml.sax.helpers.DefaultHandler.error.

Implements org.xml.sax.ErrorHandler.error.

Receive notification of a recoverable parser error.

Inherited from org.xml.sax.helpers.DefaultHandler:
charactersendDocumentendElementendPrefixMappingfatalErrorignorableWhitespacenotationDeclprocessingInstructionresolveEntitysetDocumentLocatorskippedEntitystartDocumentstartElementstartPrefixMappingunparsedEntityDeclwarning

Field Detail

ERROR_COUNT_LIMITback to summary
private static int ERROR_COUNT_LIMIT
errorCountback to summary
private int errorCount
localeback to summary
private Locale locale

Constructor Detail

DefaultValidationErrorHandlerback to summary
public DefaultValidationErrorHandler(Locale locale)

Method Detail

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

Overrides org.xml.sax.helpers.DefaultHandler.error.

Implements org.xml.sax.ErrorHandler.error.

Doc from org.xml.sax.helpers.DefaultHandler.error.

Receive notification of a recoverable parser error.

The default implementation does nothing. Application writers may override this method in a subclass to take specific actions for each error, such as inserting the message in a log file or printing it to the console.

Parameters
e:SAXParseException

The error information encoded as an exception.

Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.