Class ParseException

All Implemented Interfaces:
Serializable

public class ParseException extends IteratorException
This class describes exceptions that occurred during the parsing
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
See Also:
  • Constructor Details

    • ParseException

      public ParseException(String message, Throwable e)
      Creates a parse exception from a message and cause.
      Parameters:
      message - the message of the exception
      e - the initial exception
    • ParseException

      public ParseException(String message)
      Creates a parse exception from a message.
      Parameters:
      message - the message of the exception
    • ParseException

      public ParseException(String message, int line, int column)
      Creates a parse exception with source position information.
      Parameters:
      message - the message of the exception
      line - the line at which the exception was detected
      column - the character position in the line at which the exception was detected
    • ParseException

      public ParseException(String message, int line, int column, Throwable e)
      Creates a parse exception with source position information and a cause.
      Parameters:
      message - the message of the exception
      line - the line at which the exception was detected
      column - the character position in the line at which the exception was detected
      e - the initial exception
    • ParseException

      public ParseException(Throwable e)
      Creates a parse exception from an underlying cause.
      Parameters:
      e - the initial exception
  • Method Details

    • getLine

      public int getLine()
      Returns the line number where parsing failed.
      Returns:
      the line at which the exception occurred, -1 if it is not known
    • getColumn

      public int getColumn()
      Returns the column number where parsing failed.
      Returns:
      the character position in the line at which the exception was detected, -1 if it is not known