Module org.mule.runtime.dsl.api
Class DefaultXmlGathererErrorHandler
java.lang.Object
org.mule.runtime.dsl.internal.xerces.xni.parser.DefaultXmlGathererErrorHandler
- All Implemented Interfaces:
org.mule.apache.xerces.xni.parser.XMLErrorHandler,XmlGathererErrorHandler
Runtime implementation of
XmlGathererErrorHandler which collects all errors, and on a fatal exception will propagate an
exception.- Since:
- 1.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfatalError(String domain, String key, org.mule.apache.xerces.xni.parser.XMLParseException e) List<org.mule.apache.xerces.xni.parser.XMLParseException>void
-
Constructor Details
-
DefaultXmlGathererErrorHandler
public DefaultXmlGathererErrorHandler()
-
-
Method Details
-
warning
public void warning(String domain, String key, org.mule.apache.xerces.xni.parser.XMLParseException e) throws org.mule.apache.xerces.xni.XNIException - Specified by:
warningin interfaceorg.mule.apache.xerces.xni.parser.XMLErrorHandler- Throws:
org.mule.apache.xerces.xni.XNIException
-
error
public void error(String domain, String key, org.mule.apache.xerces.xni.parser.XMLParseException e) throws org.mule.apache.xerces.xni.XNIException - Specified by:
errorin interfaceorg.mule.apache.xerces.xni.parser.XMLErrorHandler- Throws:
org.mule.apache.xerces.xni.XNIException
-
fatalError
public void fatalError(String domain, String key, org.mule.apache.xerces.xni.parser.XMLParseException e) throws org.mule.apache.xerces.xni.XNIException - Specified by:
fatalErrorin interfaceorg.mule.apache.xerces.xni.parser.XMLErrorHandler- Throws:
org.mule.apache.xerces.xni.XNIException
-
getErrors
- Specified by:
getErrorsin interfaceXmlGathererErrorHandler- Returns:
- a collection with all the
XMLParseExceptionexceptions gathered fromXMLErrorHandler#error(String, String, XMLErrorHandler). An empty list means there were no error while parsing the file. Non null.
-