Class ClosedException

All Implemented Interfaces:
Serializable

public class ClosedException extends IOException
Exception thrown when attempting to use a closed resource.

The ClosedException is thrown when an operation is attempted on a resource (such as a terminal, reader, or writer) that has been closed. This exception extends IOException and provides the same constructors for different ways of specifying the error message and cause.

This exception is typically thrown by JLine components when methods are called after the component has been closed, such as attempting to read from a closed terminal or write to a closed output stream.

See Also:
  • Constructor Details

    • ClosedException

      public ClosedException()
    • ClosedException

      public ClosedException(String message)
    • ClosedException

      public ClosedException(String message, Throwable cause)
    • ClosedException

      public ClosedException(Throwable cause)