Class RNCDocument.RNCError

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCDocument.RNCError
Enclosing class:
RNCDocument

public static class RNCDocument.RNCError extends Object
Represents a single parser error with a code, message, and source range.

Use case: converted into LSP Diagnostic by the validator, and matched by RNCErrorCode in the code actions delegate for quick fixes.

  • Constructor Details

    • RNCError

      public RNCError(RNCErrorCode errorCode, String message, int start, int end)
      Creates a new parser error.
      Parameters:
      errorCode - the error code.
      message - the error message.
      start - the inclusive start offset.
      end - the exclusive end offset.
  • Method Details

    • getErrorCode

      public RNCErrorCode getErrorCode()
    • getMessage

      public String getMessage()
    • getStart

      public int getStart()
    • getEnd

      public int getEnd()