Class BukkitRuntimeErrorConsumer

java.lang.Object
org.skriptlang.skript.bukkit.log.runtime.BukkitRuntimeErrorConsumer
All Implemented Interfaces:
RuntimeErrorConsumer

public class BukkitRuntimeErrorConsumer extends Object implements RuntimeErrorConsumer
An implementation for Bukkit based platforms. Sends errors to console with formatted colours and a notification chat message to users with the see_runtime_errors permission.
  • Field Details

    • ERROR_NOTIF_PERMISSION

      public static final String ERROR_NOTIF_PERMISSION
      See Also:
    • CONFIG_NODE

      public static final String CONFIG_NODE
      See Also:
    • WARNING_DETAILS

      public static final ArgsMessage WARNING_DETAILS
    • ERROR_DETAILS

      public static final ArgsMessage ERROR_DETAILS
    • OTHER_DETAILS

      public static final ArgsMessage OTHER_DETAILS
    • ERROR_INFO

      public static final ArgsMessage ERROR_INFO
    • WARNING_INFO

      public static final ArgsMessage WARNING_INFO
    • LINE_INFO

      public static final ArgsMessage LINE_INFO
    • ERROR_SKIPPED

      public static final ArgsMessage ERROR_SKIPPED
    • ERROR_TIMEOUT

      public static final ArgsMessage ERROR_TIMEOUT
    • ERROR_NOTIF

      public static final ArgsMessage ERROR_NOTIF
    • ERROR_NOTIF_PLURAL

      public static final ArgsMessage ERROR_NOTIF_PLURAL
    • WARNING_SKIPPED

      public static final ArgsMessage WARNING_SKIPPED
    • WARNING_TIMEOUT

      public static final ArgsMessage WARNING_TIMEOUT
    • WARNING_NOTIF

      public static final ArgsMessage WARNING_NOTIF
    • WARNING_NOTIF_PLURAL

      public static final ArgsMessage WARNING_NOTIF_PLURAL
  • Constructor Details

    • BukkitRuntimeErrorConsumer

      public BukkitRuntimeErrorConsumer()
  • Method Details

    • printError

      public void printError(@NotNull @NotNull RuntimeError error)
      Description copied from interface: RuntimeErrorConsumer
      Prints a single error with all its information.
      Specified by:
      printError in interface RuntimeErrorConsumer
      Parameters:
      error - The error to print.
    • printFrameOutput

      public void printFrameOutput(@NotNull @NotNull Frame.FrameOutput output, Level level)
      Description copied from interface: RuntimeErrorConsumer
      Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.
      Specified by:
      printFrameOutput in interface RuntimeErrorConsumer
      Parameters:
      output - An output object containing unmodifiable views of the frame data.
      level - The severity of this frame (error vs warning).