Class LocatedValidationException

All Implemented Interfaces:
Serializable

public class LocatedValidationException extends ValidationException
A ValidationException that carries the source position where the offending input was parsed. Used by tools (e.g. the playground UI) to underline the exact span of the error rather than reporting at the top of the document.

Position fields use ANTLR's convention: lines are 1-based, columns are 0-based. endColumn is exclusive.

See Also:
  • Constructor Details

    • LocatedValidationException

      public LocatedValidationException(String message, int line, int column, int endLine, int endColumn)
    • LocatedValidationException

      public LocatedValidationException(String message, int line, int column, int endLine, int endColumn, Throwable cause)
  • Method Details

    • getLine

      public int getLine()
    • getColumn

      public int getColumn()
    • getEndLine

      public int getEndLine()
    • getEndColumn

      public int getEndColumn()