public class StandardErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
Constructor and Description |
---|
StandardErrorHandler(javax.xml.transform.ErrorListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException e)
Callback interface for SAX: not for application use
|
void |
fatalError(org.xml.sax.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(org.xml.sax.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(org.xml.sax.SAXParseException e)
Callback interface for SAX: not for application use
|
public StandardErrorHandler(javax.xml.transform.ErrorListener listener)
public void setSilent(boolean silent)
silent
- if true, errors should not be reported. Used during doc-available() processingpublic void warning(org.xml.sax.SAXParseException e)
warning
in interface org.xml.sax.ErrorHandler
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
protected void reportError(org.xml.sax.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-2018 Saxonica Limited. All rights reserved.