Class ParserException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EndOfStreamException

public class ParserException extends ProjogException
Signals a failure to successfully parse Prolog syntax.
See Also:
  • 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