public class CountingErrorHandler extends Object implements ErrorHandler
Constructor and Description |
---|
CountingErrorHandler() |
CountingErrorHandler(ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
int |
getErrorCount() |
ErrorHandler |
getErrorHandler() |
int |
getFatalErrorCount() |
boolean |
getHadErrorOrFatalError() |
int |
getWarningCount() |
void |
reset() |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
warning(SAXParseException exception) |
public CountingErrorHandler()
public CountingErrorHandler(ErrorHandler errorHandler)
public void reset()
public boolean getHadErrorOrFatalError()
public int getFatalErrorCount()
public int getErrorCount()
public int getWarningCount()
public ErrorHandler getErrorHandler()
public void setErrorHandler(ErrorHandler errorHandler)
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
SAXException
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
SAXException