public class StaxErrorReporter extends XMLErrorReporter
Modifier and Type | Field and Description |
---|---|
protected javax.xml.stream.XMLReporter |
fXMLReporter |
CONTINUE_AFTER_FATAL_ERROR, ERROR_HANDLER, fContinueAfterFatalError, fDefaultErrorHandler, fErrorHandler, fLocale, fLocator, fMessageFormatters, SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING
Constructor and Description |
---|
StaxErrorReporter()
Creates a new instance of StaxErrorReporter
If this constructor is used to create the object, one must invoke reset() on this object.
|
StaxErrorReporter(PropertyManager propertyManager)
Creates a new instance of StaxErrorReporter
|
Modifier and Type | Method and Description |
---|---|
void |
reportError(org.apache.xerces.xni.XMLLocator location,
java.lang.String domain,
java.lang.String key,
java.lang.Object[] arguments,
short severity)
Reports an error at a specific location.
|
void |
reset(PropertyManager propertyManager)
One must call reset before using any of the function.
|
getErrorHandler, getFeature, getFeatureDefault, getLocale, getMessageFormatter, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, putMessageFormatter, removeMessageFormatter, reportError, reset, setDocumentLocator, setFeature, setLocale, setProperty
public StaxErrorReporter(PropertyManager propertyManager)
public StaxErrorReporter()
public void reset(PropertyManager propertyManager)
public void reportError(org.apache.xerces.xni.XMLLocator location, java.lang.String domain, java.lang.String key, java.lang.Object[] arguments, short severity) throws org.apache.xerces.xni.XNIException
reportError
in class XMLErrorReporter
location
- The error location.domain
- The error domain.key
- The key of the error message.arguments
- The replacement arguments for the error message,
if needed.severity
- The severity of the error.org.apache.xerces.xni.XNIException
XMLErrorReporter.SEVERITY_WARNING
,
XMLErrorReporter.SEVERITY_ERROR
,
XMLErrorReporter.SEVERITY_FATAL_ERROR
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.