public class XMLErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
XMLErrorHandler
is a SAX ErrorHandler
which turns the
SAX parsing errors into XML so that the output can be formatted using XSLT or
the errors can be included in a SOAP message.Modifier and Type | Field and Description |
---|---|
protected static QName |
ERROR_QNAME |
protected static QName |
FATALERROR_QNAME |
protected static QName |
WARNING_QNAME |
Constructor and Description |
---|
XMLErrorHandler() |
XMLErrorHandler(Element errors) |
Modifier and Type | Method and Description |
---|---|
protected void |
addException(Element element,
org.xml.sax.SAXParseException e)
Adds the given parse exception information to the given element instance
|
void |
error(org.xml.sax.SAXParseException e) |
void |
fatalError(org.xml.sax.SAXParseException e) |
QName |
getErrorQName() |
Element |
getErrors() |
QName |
getFatalErrorQName() |
QName |
getWarningQName() |
void |
setErrorQName(QName errorQName) |
void |
setErrors(Element errors) |
void |
setFatalErrorQName(QName fatalErrorQName) |
void |
setWarningQName(QName warningQName) |
void |
warning(org.xml.sax.SAXParseException e) |
protected static final QName ERROR_QNAME
protected static final QName FATALERROR_QNAME
protected static final QName WARNING_QNAME
public XMLErrorHandler()
public XMLErrorHandler(Element errors)
public void error(org.xml.sax.SAXParseException e)
error
in interface org.xml.sax.ErrorHandler
public void fatalError(org.xml.sax.SAXParseException e)
fatalError
in interface org.xml.sax.ErrorHandler
public void warning(org.xml.sax.SAXParseException e)
warning
in interface org.xml.sax.ErrorHandler
public Element getErrors()
public void setErrors(Element errors)
public QName getErrorQName()
public void setErrorQName(QName errorQName)
public QName getFatalErrorQName()
public void setFatalErrorQName(QName fatalErrorQName)
public QName getWarningQName()
public void setWarningQName(QName warningQName)
protected void addException(Element element, org.xml.sax.SAXParseException e)
element
- DOCUMENT ME!e
- DOCUMENT ME!