Class XmlErrorHandler
java.lang.Object
org.apache.tomcat.util.descriptor.XmlErrorHandler
- All Implemented Interfaces:
ErrorHandler
SAX error handler that collects warnings and errors for later processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) Returns the list of collected parsing errors.Returns the list of collected parsing warnings.voidlogFindings(Log log, String source) Logs all collected warnings and errors to the specified log.voidwarning(SAXParseException exception)
-
Constructor Details
-
XmlErrorHandler
public XmlErrorHandler()Default constructor.
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
getErrors
Returns the list of collected parsing errors.- Returns:
- the list of errors
-
getWarnings
Returns the list of collected parsing warnings.- Returns:
- the list of warnings
-
logFindings
-