Package org.jline.utils
Class ClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.jline.utils.ClosedException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionClosedException
(String message) ClosedException
(String message, Throwable cause) ClosedException
(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClosedException
public ClosedException() -
ClosedException
-
ClosedException
-
ClosedException
-