public class ErrorViewCollectorErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
ErrorHandler
that adds all reported problems to an ErrorViewCollector
instance.Constructor and Description |
---|
ErrorViewCollectorErrorHandler(ErrorViewCollector errorViewCollector,
ErrorViewCategory errorViewCategory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException exception) |
void |
fatalError(org.xml.sax.SAXParseException exception) |
void |
warning(org.xml.sax.SAXParseException exception) |
public ErrorViewCollectorErrorHandler(@NotNull ErrorViewCollector errorViewCollector, @NotNull ErrorViewCategory errorViewCategory)
errorViewCollector
- the error view collector instance for adding
messageserrorViewCategory
- the error view category to use when adding
messages to errorViewCollector
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException