Class ClosedException

All Implemented Interfaces:
Serializable

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

    • ClosedException

      public ClosedException()
      Default constructor. Message indicates 'File is closed'.
    • ClosedException

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

    • getResourceName

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