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 Type
    Method
    Description
    void
    Prints a single error with all its information.
    void
    Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.
  • Method Details

    • printError

      void printError(RuntimeError error)
      Prints a single error with all its information.
      Parameters:
      error - The error to print.
    • printFrameOutput

      void printFrameOutput(Frame.FrameOutput output, Level level)
      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).