Package ghidra.program.model.listing

# Class VariableSizeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
ghidra.util.exception.UsrException
ghidra.util.exception.InvalidInputException
ghidra.program.model.listing.VariableSizeException

All Implemented Interfaces:
  `Serializable`

public class VariableSizeException extends InvalidInputException
`VariableSizeException` is thrown when a variable data-type exceeds storage constraints.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VariableSizeException(String msg)`
  Constructor.
  `VariableSizeException(String msg, boolean canForce)`
  Constructor.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `canForce()`
  Returns true if the operation could be successful if forced.

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

  - ### VariableSizeException

    public VariableSizeException(String msg)
    Constructor. The canForce value is assumed to be false.
    Parameters:
      `msg` - message text

  - ### VariableSizeException

    public VariableSizeException(String msg, boolean canForce)
    Constructor.
    Parameters:
      `msg` - message text
      `canForce` - if true conveys to the user that the operation may be successful if forced.

- ## Method Details

  - ### canForce

    public boolean canForce()
    Returns true if the operation could be successful if forced.