Class Frame
java.lang.Object
org.skriptlang.skript.log.runtime.Frame
Stores the accumulated runtime errors over a span of time, then prints them.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Store limits for the number of issues a frame can print per frame.static final record
Stores outputs of a frame. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(@NotNull RuntimeError error) Adds an error to this frame.@NotNull Frame.FrameOutput
Gets the output data for a frame.void
Advances the frame to the next frame, clearing all stored totals and decrementing timeout counters.
-
Constructor Details
-
Frame
Creates a blank frame with the given limits- Parameters:
limits
- The limits to use for when to skip or timeout.
-
-
Method Details
-
add
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
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.
-