public class StaxErrorReporter extends XMLErrorReporter
| Modifier and Type | Field and Description |
|---|---|
protected 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 |
|---|---|
String |
reportError(XMLLocator location,
String domain,
String key,
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, getSAXErrorHandler, putMessageFormatter, removeMessageFormatter, reportError, reportError, reportError, reset, setDocumentLocator, setFeature, setLocale, setPropertyprotected XMLReporter fXMLReporter
public StaxErrorReporter(PropertyManager propertyManager)
public StaxErrorReporter()
public void reset(PropertyManager propertyManager)
public String reportError(XMLLocator location, String domain, String key, Object[] arguments, short severity) throws XNIException
reportError in class XMLErrorReporterlocation - 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.XNIExceptionXMLErrorReporter.SEVERITY_WARNING,
XMLErrorReporter.SEVERITY_ERROR,
XMLErrorReporter.SEVERITY_FATAL_ERRORCopyright © 2018–2021 mhoffrogge. All rights reserved.