Class ClosedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClosedException
    extends java.io.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:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClosedException

        public ClosedException()
      • ClosedException

        public ClosedException​(java.lang.String message)
      • ClosedException

        public ClosedException​(java.lang.String message,
                               java.lang.Throwable cause)
      • ClosedException

        public ClosedException​(java.lang.Throwable cause)