Class Frame

java.lang.Object
org.skriptlang.skript.log.runtime.Frame

public final class Frame extends Object
Stores the accumulated runtime errors over a span of time, then prints them.
  • Constructor Details

    • Frame

      public Frame(Frame.FrameLimit limits)
      Creates a blank frame with the given limits
      Parameters:
      limits - The limits to use for when to skip or timeout.
  • Method Details

    • add

      public boolean add(@NotNull @NotNull RuntimeError error)
      Adds an error to this frame.
      Parameters:
      error - The error to add.
      Returns:
      Whether the error should be printed immediately.
    • nextFrame

      public void nextFrame()
      Advances the frame to the next frame, clearing all stored totals and decrementing timeout counters.
    • getFrameOutput

      @Contract(" -> new") @NotNull public @NotNull Frame.FrameOutput getFrameOutput()
      Gets the output data for a frame. Returned data contains unmodifiable views of frame data, which is not guaranteed to stay valid.
      Returns:
      The current output data of this frame.