Package ghidra.util.exception

# Class ClosedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
ghidra.util.exception.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:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClosedException()`
  Default constructor.
  `ClosedException(String resourceName)`
  Constructor which indicates resource which has been closed.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `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 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.