public class ErrorCounter extends Object implements ErrorHandler
| Constructor and Description |
|---|
ErrorCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException ex)
Receive notification of a recoverable error.
|
void |
fatalError(SAXParseException ex)
Receive notification of a non-recoverable error.
|
List<String> |
getErrorMessages()
Returns a list of error messages collected since the ErrorCounter was
created or
reset() was last called. |
int |
numErrors()
The number of errors collected since the ErrorCounter was created or
reset() was last called. |
void |
reset()
Clears the error messages so the object can be re-used.
|
void |
warning(SAXParseException ex)
Receive notification of a warning.
|
public void reset()
public int numErrors()
reset() was last called.public List<String> getErrorMessages()
reset() was last called.public void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlerex - The error information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.public void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerex - The error information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.public void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerex - The warning information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.Copyright © 2016 The American National Corpus. All rights reserved.