Record Class MachineError.InvalidConfiguration
java.lang.Object
java.lang.Record
fr.robie.machineengine.api.error.MachineError.InvalidConfiguration
- All Implemented Interfaces:
MachineError
- Enclosing interface:
MachineError
-
Nested Class Summary
Nested classes/interfaces inherited from interface MachineError
MachineError.Generic, MachineError.InsufficientResource, MachineError.InvalidConfiguration, MachineError.InvalidDefinition, MachineError.MissingResource, MachineError.SerializationError, MachineError.TransferRejected, MachineError.WrongThread -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInvalidConfiguration(@NotNull String message, @NotNull Map<String, Object> details) Creates an instance of aInvalidConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.key.Keycode()Stable machine-readable code, e.g.context()Debugging details.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringmessage()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface MachineError
format
-
Field Details
-
CODE
public static final net.kyori.adventure.key.Key CODE
-
-
Constructor Details
-
InvalidConfiguration
-
-
Method Details
-
code
@NotNull public @NotNull net.kyori.adventure.key.Key code()Description copied from interface:MachineErrorStable machine-readable code, e.g.machineengine:insufficient_resource.- Specified by:
codein interfaceMachineError
-
context
Description copied from interface:MachineErrorDebugging details.- Specified by:
contextin interfaceMachineError
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceMachineError- Returns:
- the value of the
messagerecord component
-
details
-