Package ghidra.app.util

# Class OptionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
ghidra.app.util.OptionException

All Implemented Interfaces:
  `Serializable`

public class OptionException extends Exception
Exception thrown if there was a problem accessing an Option, or if an informational message is to be conveyed.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OptionException(String msg)`
  Construct a new OptionException.
  `OptionException(String msg, boolean isInfo)`
  Construct a new OptionException that may be an informational message if isValid is true.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isInfoMessage()`
  Return whether the message associated with this exception is informational.

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

  - ### OptionException

    public OptionException(String msg)
    Construct a new OptionException.
    Parameters:
      `msg` - reason for the exception

  - ### OptionException

    public OptionException(String msg, boolean isInfo)
    Construct a new OptionException that may be an informational message if isValid is true.
    Parameters:
      `msg` - message to display
      `isInfo` - true if the msg is in informational message

- ## Method Details

  - ### isInfoMessage

    public boolean isInfoMessage()
    Return whether the message associated with this exception is informational.