java.lang.Objectcom.sun.org.apache.xerces.internal.impl.XMLErrorReporter
All Implemented Interfaces:
XMLComponent
Direct Known Subclasses:
StaxErrorReporter
http://apache.org/xml/properties/internal/error-reporter
Errors are separated into domains that categorize a class of errors.
In a parser configuration, the parser would register a
MessageFormatter for each domain that is capable of
localizing error messages and formatting them based on information
about the error. Any parser component can invent new error domains
and register additional message formatters to localize messages in
those domains.
This component requires the following features and properties from the component manager that uses it:
This component can use the following features and properties but they are not required:
Eric - Ye, IBMAndy - Clark, IBM| Field Summary | ||
|---|---|---|
| public static final short | SEVERITY_WARNING | Severity: warning. Warnings represent informational messages only that should not be considered serious enough to stop parsing or indicate an error in the document's validity. |
| public static final short | SEVERITY_ERROR | Severity: error. Common causes of errors are document structure and/or content that that does not conform to the grammar rules specified for the document. These are typically validation errors. |
| public static final short | SEVERITY_FATAL_ERROR | Severity: fatal error. Fatal errors are errors in the syntax of the
XML document or invalid byte sequences for a given encoding. The
XML 1.0 Specification mandates that errors of this type are not
recoverable.
Note: The parser does have a "continue after fatal error" feature but it should be used with extreme caution and care. |
| protected static final String | CONTINUE_AFTER_FATAL_ERROR | Feature identifier: continue after fatal error. |
| protected static final String | ERROR_HANDLER | Property identifier: error handler. |
| protected Locale | fLocale | The locale to be used to format error messages. |
| protected Hashtable | fMessageFormatters | Mapping of Message formatters for domains. |
| protected XMLErrorHandler | fErrorHandler | Error handler. |
| protected XMLLocator | fLocator | Document locator. |
| protected boolean | fContinueAfterFatalError | Continue after fatal error feature. |
| protected XMLErrorHandler | fDefaultErrorHandler | Default error handler. This error handler is only used in the absence of a registered error handler so that errors are not "swallowed" silently. This is one of the most common "problems" reported by users of the parser. |
| Method from com.sun.org.apache.xerces.internal.impl.XMLErrorReporter Summary: |
|---|
| getErrorHandler, getFeature, getFeatureDefault, getLocale, getMessageFormatter, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getSAXErrorHandler, putMessageFormatter, removeMessageFormatter, reportError, reportError, reset, setDocumentLocator, setFeature, setLocale, setProperty |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.sun.org.apache.xerces.internal.impl.XMLErrorReporter Detail: |
|---|
|
|
|
|
|
|
|
|
|
Note: Registering a message formatter for a domain when there is already a formatter registered will cause the previous formatter to be lost. This method replaces any previously registered message formatter for the specified domain. |
|
|
|
|
|
Note: Components should silently ignore features that do not affect the operation of the component. |
|
Note: Components should silently ignore properties that do not affect the operation of the component. |