Class ParserException

All Implemented Interfaces:
Serializable

public class ParserException extends ProjogException
Signals a failure to successfully parse Prolog syntax.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • message

      private final String message
    • line

      private final String line
    • lineNumber

      private final int lineNumber
    • columnNumber

      private final int columnNumber
  • Constructor Details

  • Method Details

    • getLine

      public String getLine()
      Returns the contents of the line being parsed when the problem occurred.
    • getLineNumber

      public int getLineNumber()
      Returns the line number of the line being parsed when the problem occurred.
    • getColumnNumber

      public int getColumnNumber()
      Returns the index in the line being parsed of the character being parsed when the problem occurred.
    • getDescription

      public void getDescription(PrintStream out)
      Prints a description of this exception to the specified print stream.

      The description contains the particular line being parsed when the exception was thrown.

      Parameters:
      out - PrintStream to use for output