All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tiler.internal.queries.QueryError Maven / Gradle / Ivy

There is a newer version: 0.1.28
Show newest version
package io.tiler.internal.queries;

import org.antlr.v4.runtime.Token;

public class QueryError {
  private final int line;
  private final int column;
  private final String message;

  public QueryError(int line, int column, String message) {
    this.line = line;
    this.column = column;
    this.message = message;
  }

  public QueryError(Token token, String message) {
    this.line = token.getLine();
    this.column = token.getCharPositionInLine();
    this.message = message;
  }

  public int line() {
    return line;
  }

  public int column() {
    return column;
  }

  public String message() {
    return message;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy