Class ClosedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClosedException
    extends java.io.IOException
    ClosedException indicates that the underlying resource has been closed and read/write operations have failed.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ClosedException()
      Default constructor.
      ClosedException​(java.lang.String resourceName)
      Constructor which indicates resource which has been closed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getResourceName()  
      • 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()
        Default constructor. Message indicates 'File is closed'.
      • ClosedException

        public ClosedException​(java.lang.String resourceName)
        Constructor which indicates resource which has been closed. Message indicates '<resourceName> is closed'.
        Parameters:
        resourceName - name of closed resource.
    • Method Detail

      • getResourceName

        public java.lang.String getResourceName()
        Returns:
        name of resource which is closed.