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
Modifier and TypeFieldDescriptionstatic final String
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final String
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
static final ArgsMessage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
printError
(@NotNull RuntimeError error) Prints a single error with all its information.void
printFrameOutput
(@NotNull Frame.FrameOutput output, Level level) Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.
-
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:RuntimeErrorConsumer
Prints a single error with all its information.- Specified by:
printError
in interfaceRuntimeErrorConsumer
- Parameters:
error
- The error to print.
-
printFrameOutput
Description copied from interface:RuntimeErrorConsumer
Prints the output of a frame, including skipped errors, timeouts, and whatever other information required.- Specified by:
printFrameOutput
in interfaceRuntimeErrorConsumer
- Parameters:
output
- An output object containing unmodifiable views of the frame data.level
- The severity of this frame (error vs warning).
-