public final class SAXErrorCollector extends ErrorCollector<SAXParseException> implements ErrorHandler
Constructor and Description |
---|
SAXErrorCollector(org.slf4j.Logger logger)
Creates a new Berlioz error handler.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
void |
warning(SAXParseException exception) |
collect, collectQuietly, getErrors, hasError, setErrorFlag, setException
public SAXErrorCollector(org.slf4j.Logger logger)
logger
- A logger to report errors when the SAX methods are called.public void fatalError(SAXParseException exception) throws SAXParseException
fatalError
in interface ErrorHandler
exception
- A SAX parse fatal reported by the SAX parser.SAXParseException
- If thrown by the underlying ErrorCollector
.ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public void error(SAXParseException exception) throws SAXParseException
error
in interface ErrorHandler
exception
- A SAX parse error reported by the SAX parser.SAXParseException
- If thrown by the underlying ErrorCollector
.ErrorHandler.error(org.xml.sax.SAXParseException)
public void warning(SAXParseException exception) throws SAXParseException
warning
in interface ErrorHandler
exception
- A SAX parse warning reported by the SAX parser.SAXParseException
- If thrown by the underlying ErrorCollector
.ErrorHandler.warning(org.xml.sax.SAXParseException)
Copyright © 2016 Allette Systems. All rights reserved.