Class ExceptionMetadata

java.lang.Object
org.rumbledb.exceptions.ExceptionMetadata
All Implemented Interfaces:
Serializable

public class ExceptionMetadata extends Object implements Serializable
Metadata for error reporting (line and column number)
Author:
Stefan Irimescu, Ghislain Fourny
See Also:
  • Field Details

  • Constructor Details

    • ExceptionMetadata

      public ExceptionMetadata(String location, int line, int column, String code)
      Builds a new metadata object
      Parameters:
      location - the URI of the JSONiq module at which the exception occurred.
      line - the line number at which the error occurred.
      column - the column number at which the error occurred.
      code - the query code around the error.
  • Method Details

    • getTokenLineNumber

      public int getTokenLineNumber()
      Returns the line number.
      Returns:
      the line number.
    • getTokenColumnNumber

      public int getTokenColumnNumber()
      Returns the column number.
      Returns:
      the column number.
    • getLocation

      public String getLocation()
      Returns the location.
      Returns:
      the location.
    • getCode

      public String getCode()
      Returns the the query code around the error.
      Returns:
      the the query code around the error.
    • getLineInContext

      public String getLineInContext()
      Returns the error location in context.
      Returns:
      the code with a pointer to the error location.
    • toString

      public String toString()
      Overrides:
      toString in class Object