Class XMLErrorHandler
java.lang.Object
org.dom4j.util.XMLErrorHandler
- All Implemented Interfaces:
ErrorHandler
XMLErrorHandler is a SAX ErrorHandlerwhich 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.- Version:
- $Revision: 1.7 $
- Author:
- James Strachan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddException(Element element, SAXParseException e) Adds the given parse exception information to the given element instancevoidvoidvoidsetErrorQName(QName errorQName) voidvoidsetFatalErrorQName(QName fatalErrorQName) voidsetWarningQName(QName warningQName) void
-
Field Details
-
ERROR_QNAME
-
FATALERROR_QNAME
-
WARNING_QNAME
-
-
Constructor Details
-
XMLErrorHandler
public XMLErrorHandler() -
XMLErrorHandler
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler
-
warning
- Specified by:
warningin interfaceErrorHandler
-
getErrors
-
setErrors
-
getErrorQName
-
setErrorQName
-
getFatalErrorQName
-
setFatalErrorQName
-
getWarningQName
-
setWarningQName
-
addException
Adds the given parse exception information to the given element instance- Parameters:
element- DOCUMENT ME!e- DOCUMENT ME!
-