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:
Serializable
Unexpected end of file error when parsing an input stream. Used by
ParseReader
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseEOFException
(Reader reader) Reader constructor with a default message and no cause.ParseEOFException
(Reader reader, String message) Reader and message constructor with no cause.ParseEOFException
(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseEOFException
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 isnull
.- See Also:
-
ParseEOFException
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:
NullPointerException
- if the given reader isnull
.
-
ParseEOFException
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:
NullPointerException
- if the given reader isnull
.
-