Class RelaxNGErrorHandler

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.xml.validator.RelaxNGErrorHandler
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLErrorHandler

public class RelaxNGErrorHandler extends Object implements org.apache.xerces.xni.parser.XMLErrorHandler
XMLErrorHandler Xerces implementation for RelaxNG.

Jing provides no structured error codes—only English message strings via SAXParseException. This handler matches those messages by prefix/suffix/contains patterns and maps them to RelaxNGErrorCode enum values for precise diagnostic ranges and code actions.

Author:
Angelo ZERR
See Also:
  • Constructor Details

    • RelaxNGErrorHandler

      public RelaxNGErrorHandler(org.apache.xerces.impl.XMLErrorReporter report)
  • Method Details

    • warning

      public void warning(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
      Specified by:
      warning in interface org.apache.xerces.xni.parser.XMLErrorHandler
      Throws:
      org.apache.xerces.xni.XNIException
    • fatalError

      public void fatalError(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
      Specified by:
      fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandler
      Throws:
      org.apache.xerces.xni.XNIException
    • error

      public void error(String domain, String key, org.apache.xerces.xni.parser.XMLParseException exception) throws org.apache.xerces.xni.XNIException
      Specified by:
      error in interface org.apache.xerces.xni.parser.XMLErrorHandler
      Throws:
      org.apache.xerces.xni.XNIException