Package com.alexmerz.graphviz
Class GraphvizTokenMgrError
java.lang.Object
com.alexmerz.graphviz.GraphvizTokenMgrError
Error helper class to create nicer lexer/parser messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError code, if a directed edge operator was detected in a graph.static final intError code, if a undirected edge operator was detected in a digraph. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.alexmerz.graphviz.TokenMgrErrorcreate(int code, int line, int col) Creates a new Token Error.
-
Field Details
-
DIRECTED_EDGE_NOT_ALLOWED
public static final int DIRECTED_EDGE_NOT_ALLOWEDError code, if a directed edge operator was detected in a graph.- See Also:
-
UNDIRECTED_EDGE_NOT_ALLOWED
public static final int UNDIRECTED_EDGE_NOT_ALLOWEDError code, if a undirected edge operator was detected in a digraph.- See Also:
-
-
Constructor Details
-
GraphvizTokenMgrError
public GraphvizTokenMgrError()
-
-
Method Details
-
create
public static com.alexmerz.graphviz.TokenMgrError create(int code, int line, int col) Creates a new Token Error.- Parameters:
code- The error codeline- The line where the error occuredcol- The column of the line where the error occured- Returns:
- an new TokenMgrError
-