Class EOFError

java.lang.Object
All Implemented Interfaces:
Serializable

public class EOFError extends SyntaxError
Exception thrown when parsing is incomplete due to unexpected end of input.

EOFError is a specialized type of SyntaxError that indicates the input is incomplete rather than invalid. This typically occurs when the user has entered an incomplete construct, such as an unclosed quote, parenthesis, or bracket.

This exception provides additional information about what is missing to complete the input, which can be used by the LineReader to provide appropriate feedback to the user, such as a continuation prompt that indicates what needs to be closed.

The name "EOFError" refers to "End Of File Error", indicating that the parser reached the end of the input before the syntax was complete.

See Also: