Interface MachineError
- All Known Implementing Classes:
MachineError.Generic, MachineError.InsufficientResource, MachineError.InvalidConfiguration, MachineError.InvalidDefinition, MachineError.MissingResource, MachineError.SerializationError, MachineError.TransferRejected, MachineError.WrongThread
public interface MachineError
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn error with a free-form code.static final recordLess than required was available.static final recordInvalid configuration value.static final recordA definition (type, recipe, port …) is invalid.static final recordSomething referenced by key is not registered (e.g.static final recordData could not be encoded or decoded.static final recordA handler refused a transfer.static final recordCalled from a thread that does not own the target (§16). -
Method Summary
-
Method Details
-
code
@NotNull @NotNull net.kyori.adventure.key.Key code()Stable machine-readable code, e.g.machineengine:insufficient_resource. -
message
-
context
-
format
-
of
@NotNull static @NotNull MachineError of(@NotNull @NotNull net.kyori.adventure.key.Key code, @NotNull @NotNull String message) -
details
-