Package com.globalmentor.io
Class ParseEOFException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.globalmentor.io.ParseIOException
-
- com.globalmentor.io.ParseEOFException
-
- All Implemented Interfaces:
java.io.Serializable
public class ParseEOFException extends ParseIOException
Unexpected end of file error when parsing an input stream. Used byParseReader
.- See Also:
ParseIOException
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseEOFException(java.io.Reader reader)
Reader constructor with a default message and no cause.ParseEOFException(java.io.Reader reader, java.lang.String message)
Reader and message constructor with no cause.ParseEOFException(java.lang.String message, long lineIndex, long charIndex)
Reader and message constructor with no cause.
-
Method Summary
-
Methods inherited from class com.globalmentor.io.ParseIOException
convertStringsToMessage, createMessage, createMessage, createMessage, getCharacterIndex, getCharIndex, getLineIndex, getLineIndex, getSourceName
-
-
-
-
Constructor Detail
-
ParseEOFException
public ParseEOFException(java.io.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:
java.lang.NullPointerException
- if the given reader isnull
.- See Also:
LineNumberReader
-
ParseEOFException
public ParseEOFException(java.io.Reader reader, java.lang.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, ornull
if there is no error message.- Throws:
java.lang.NullPointerException
- if the given reader isnull
.
-
ParseEOFException
public ParseEOFException(java.lang.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, ornull
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:
java.lang.NullPointerException
- if the given reader isnull
.
-
-