Class BukkitRuntimeErrorConsumer
java.lang.Object
org.skriptlang.skript.bukkit.log.runtime.BukkitRuntimeErrorConsumer
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final Stringstatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessagestatic final ArgsMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprintError(@NotNull RuntimeError error) Prints a single error with all its information.voidprintFrameOutput(@NotNull Frame.FrameOutput output, Level level) Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorConsumer
getFilter
-
Field Details
-
ERROR_NOTIF_PERMISSION
- See Also:
-
CONFIG_NODE
- See Also:
-
WARNING_DETAILS
-
ERROR_DETAILS
-
OTHER_DETAILS
-
ERROR_INFO
-
WARNING_INFO
-
LINE_INFO
-
ERROR_SKIPPED
-
ERROR_TIMEOUT
-
ERROR_NOTIF
-
ERROR_NOTIF_PLURAL
-
WARNING_SKIPPED
-
WARNING_TIMEOUT
-
WARNING_NOTIF
-
WARNING_NOTIF_PLURAL
-
-
Constructor Details
-
BukkitRuntimeErrorConsumer
public BukkitRuntimeErrorConsumer()
-
-
Method Details
-
printError
Description copied from interface:RuntimeErrorConsumerPrints a single error with all its information.- Specified by:
printErrorin interfaceRuntimeErrorConsumer- Parameters:
error- The error to print.
-
printFrameOutput
Description copied from interface:RuntimeErrorConsumerPrints the output of a frame, including skipped errors, timeouts, and whatever other information required.- Specified by:
printFrameOutputin interfaceRuntimeErrorConsumer- Parameters:
output- An output object containing unmodifiable views of the frame data.level- The severity of this frame (error vs warning).
-