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

public class DefaultXmlGathererErrorHandler extends Object implements XmlGathererErrorHandler
Runtime implementation of XmlGathererErrorHandler which collects all errors, and on a fatal exception will propagate an exception.
Since:
1.4.0
  • 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:
      warning in interface org.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:
      error in interface org.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:
      fatalError in interface org.mule.apache.xerces.xni.parser.XMLErrorHandler
      Throws:
      org.mule.apache.xerces.xni.XNIException
    • getErrors

      public List<org.mule.apache.xerces.xni.parser.XMLParseException> getErrors()
      Specified by:
      getErrors in interface XmlGathererErrorHandler
      Returns:
      a collection with all the XMLParseException exceptions gathered from XMLErrorHandler#error(String, String, XMLErrorHandler).

      An empty list means there were no error while parsing the file. Non null.