public class GraqlErrorListener
extends org.antlr.v4.runtime.BaseErrorListener
hasErrors() to see if there were errors.
View the errors with toString().| Modifier and Type | Method and Description |
|---|---|
boolean |
hasErrors() |
static GraqlErrorListener |
of(String query) |
void |
syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e) |
String |
toString() |
static GraqlErrorListener |
withoutQueryString()
Create a
GraqlErrorListener without a reference to a query string. |
public static GraqlErrorListener withoutQueryString()
GraqlErrorListener without a reference to a query string.
This will have limited error-reporting abilities, but is necessary when dealing with very large queries that should not be held in memory all at once.
public static GraqlErrorListener of(String query)
public void syntaxError(org.antlr.v4.runtime.Recognizer<?,?> recognizer,
Object offendingSymbol,
int line,
int charPositionInLine,
String msg,
org.antlr.v4.runtime.RecognitionException e)
syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListenersyntaxError in class org.antlr.v4.runtime.BaseErrorListenerpublic boolean hasErrors()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.