protected class HTMLConfiguration.ErrorReporter extends Object implements HTMLErrorReporter
IOException directly instead of reporting an error.
When used in a configuration, the error reporter instance should be set as a property with the following property identifier:
"http://cyberneko.org/html/internal/error-reporter" in theComponents in the configuration can query the error reporter using this property identifier.
Note: All reported errors are within the domain "http://cyberneko.org/html".
| Modifier | Constructor and Description |
|---|---|
protected |
ErrorReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected XMLParseException |
createException(String key,
Object[] args) |
String |
formatMessage(String key,
Object[] args)
Format message without reporting error.
|
protected String |
formatSimpleMessage(String key,
Object[] args) |
void |
reportError(String key,
Object[] args)
Reports an error.
|
void |
reportWarning(String key,
Object[] args)
Reports a warning.
|
public String formatMessage(String key, Object[] args)
formatMessage in interface HTMLErrorReporterkey - keyargs - argspublic void reportWarning(String key, Object[] args) throws XMLParseException
reportWarning in interface HTMLErrorReporterkey - keyargs - argsXMLParseExceptionpublic void reportError(String key, Object[] args) throws XMLParseException
reportError in interface HTMLErrorReporterkey - keyargs - argsXMLParseExceptionprotected XMLParseException createException(String key, Object[] args)
Copyright © 2024 HtmlUnit. All rights reserved.