Package ghidra.app.script

# Class ImproperUseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ghidra.app.script.ImproperUseException

All Implemented Interfaces:
  `Serializable`

public class ImproperUseException extends RuntimeException
Exception class to be used when API calls are improperly used (i.e., GhidraScript.askProjectFolder() method is being used in Headless mode).

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ImproperUseException(String msg)`
  Constructs a new improper use exception with the specified detail message.
  `ImproperUseException(Throwable cause)`
  Constructs a new exception with the specified cause

- ## Method Summary

  ### 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

  - ### ImproperUseException

    public ImproperUseException(String msg)
    Constructs a new improper use exception with the specified detail message.
    Parameters:
      `msg` - the detail message

  - ### ImproperUseException

    public ImproperUseException(Throwable cause)
    Constructs a new exception with the specified cause
    Parameters:
      `cause` - the cause of the exception