Package org.htmlunit.cyberneko
Interface HTMLErrorReporter
-
- All Known Implementing Classes:
HTMLConfiguration.ErrorReporter
public interface HTMLErrorReporterDefines an error reporter for reporting HTML errors. There is no such thing as a fatal error in parsing HTML. I/O errors are fatal but should throw anIOExceptiondirectly 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 the
Components in the configuration can query the error reporter using this property identifier.Note: All reported errors are within the domain "http://cyberneko.org/html".
- Author:
- Andy Clark
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringformatMessage(String key, Object[] args)Format message without reporting error.voidreportError(String key, Object[] args)Reports an error.voidreportWarning(String key, Object[] args)Reports a warning.
-
-
-
Method Detail
-
formatMessage
String formatMessage(String key, Object[] args)
Format message without reporting error.- Parameters:
key- keyargs- args- Returns:
- string
-
reportWarning
void reportWarning(String key, Object[] args) throws XMLParseException
Reports a warning.- Parameters:
key- keyargs- args- Throws:
XMLParseException
-
reportError
void reportError(String key, Object[] args) throws XMLParseException
Reports an error.- Parameters:
key- keyargs- args- Throws:
XMLParseException
-
-