Class GraphvizTokenMgrError


  • public class GraphvizTokenMgrError
    extends Object
    Error helper class to create nicer lexer/parser messages
    • Field Detail

      • DIRECTED_EDGE_NOT_ALLOWED

        public static final int DIRECTED_EDGE_NOT_ALLOWED
        Error code, if a directed edge operator was detected in a graph.
        See Also:
        Constant Field Values
      • UNDIRECTED_EDGE_NOT_ALLOWED

        public static final int UNDIRECTED_EDGE_NOT_ALLOWED
        Error code, if a undirected edge operator was detected in a digraph.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GraphvizTokenMgrError

        public GraphvizTokenMgrError()
    • Method Detail

      • create

        public static com.alexmerz.graphviz.TokenMgrError create​(int code,
                                                                 int line,
                                                                 int col)
        Creates a new Token Error.
        Parameters:
        code - The error code
        line - The line where the error occured
        col - The column of the line where the error occured
        Returns:
        an new TokenMgrError