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:
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
-
-
Constructor Summary
Constructors Constructor Description ClosedException()
ClosedException(java.lang.String message)
ClosedException(java.lang.String message, java.lang.Throwable cause)
ClosedException(java.lang.Throwable cause)
-