public class ExceptionErrorHandler extends Object implements ErrorHandler
XmlException
on any error,
and maintains a list of warnings. This is used by ParseUtil
,
to avoid the logging of the default error handler.Constructor and Description |
---|
ExceptionErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
List<SAXParseException> |
getWarnings()
Returns the list of warnings generated during parsing.
|
void |
warning(SAXParseException e) |
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
SAXException
public List<SAXParseException> getWarnings()
null
.