Class FrameSlotTypeException

All Implemented Interfaces:
Serializable

public final class FrameSlotTypeException extends IllegalStateException
Exception thrown if the frame slot kind does not match the expected kind.
Since:
0.8 or earlier
See Also:
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
      Since:
      24.2
    • getSlot

      public int getSlot()
      Returns the frame slot index that was read.
      Since:
      24.2
    • getExpectedKind

      public FrameSlotKind getExpectedKind()
      Returns the expected frame slot kind when the exception occurred.
      Since:
      24.2
    • getActualKind

      public FrameSlotKind getActualKind()
      Returns the actual frame slot kind when the exception occurred.
      Since:
      24.2
    • create

      public static FrameSlotTypeException create(int slot, FrameSlotKind expectedKind, FrameSlotKind actualKind)
      Creates a new frame slot type exception.
      Parameters:
      slot - the frame slot index used when reading
      expectedKind - the expected frame slot kind when reading
      actualKind - the actual frame slot kind when reading
      Since:
      24.2