Interface RuntimeErrorConsumer
- All Known Implementing Classes:
BukkitRuntimeErrorConsumer
public interface RuntimeErrorConsumer
Consumes runtime errors. Some use cases include printing errors to console or redirecting to a Discord channel.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
printError
(RuntimeError error) Prints a single error with all its information.void
printFrameOutput
(Frame.FrameOutput output, Level level) Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.
-
Method Details
-
printError
Prints a single error with all its information.- Parameters:
error
- The error to print.
-
printFrameOutput
Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.- Parameters:
output
- An output object containing unmodifiable views of the frame data.level
- The severity of this frame (error vs warning).
-