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 |
setErrorOutput(Writer writer)
Set output for error messages produced by the default error handler.
|
void |
warning(SAXParseException e)
Callback interface for SAX: not for application use
|
public StandardErrorHandler(ErrorListener listener)
public void setErrorOutput(Writer writer)
writer - The Writer to use for error messagespublic 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-2013 Saxonica Limited. All rights reserved.