public class StandardErrorHandler extends Object implements ErrorHandler
| Constructor and Description |
|---|
StandardErrorHandler(ErrorListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e)
Callback interface for SAX: not for application use
|
void |
fatalError(SAXParseException e)
Callback interface for SAX: not for application use
|
int |
getErrorCount()
Return the number of errors reported
|
int |
getFatalErrorCount()
Return the number of fatal errors reported
|
int |
getWarningCount()
Return the number of warnings (including warnings) reported
|
protected void |
reportError(SAXParseException e,
boolean isFatal)
Common routine for SAX errors and fatal errors
|
void |
setSilent(boolean silent)
Indicate whether the error handler should report errors to the ErrorListener
|
void |
warning(SAXParseException e)
Callback interface for SAX: not for application use
|
public StandardErrorHandler(ErrorListener listener)
public void setSilent(boolean silent)
silent - if true, errors should not be reported. Used during doc-available() processingpublic void warning(SAXParseException e)
warning in interface ErrorHandlerpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionprotected void reportError(SAXParseException e, boolean isFatal)
e - the exception being handledisFatal - true if the error is classified as fatalpublic int getWarningCount()
public int getErrorCount()
public int getFatalErrorCount()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.