Class ParseEOFException

All Implemented Interfaces:
Serializable

public class ParseEOFException extends ParseIOException
Unexpected end of file error when parsing an input stream. Used by ParseReader.
See Also:
  • Constructor Details

    • ParseEOFException

      public ParseEOFException(Reader reader)
      Reader constructor with a default message and no cause. This constructor will attempt to determine the location from the reader.
      Parameters:
      reader - The reader from which the error occurred.
      Throws:
      NullPointerException - if the given reader is null.
      See Also:
    • ParseEOFException

      public ParseEOFException(Reader reader, String message)
      Reader and message constructor with no cause. This constructor will attempt to determine the location from the reader.
      Parameters:
      reader - The reader from which the error occurred.
      message - The error message, or null if there is no error message.
      Throws:
      NullPointerException - if the given reader is null.
    • ParseEOFException

      public ParseEOFException(String message, long lineIndex, long charIndex)
      Reader and message constructor with no cause. This constructor will attempt to determine the location from the reader.
      Parameters:
      message - The error message, or null if there is no error message.
      lineIndex - The index of the line in which the error occurred, or -1 if not known.
      charIndex - The index of the character at which the error occurred on the current line, or -1 if not known.
      Throws:
      NullPointerException - if the given reader is null.