Record Class ItemRegistrationResult.ExceptionOccurred
java.lang.Object
java.lang.Record
net.okocraft.box.api.model.result.item.ItemRegistrationResult.ExceptionOccurred
- Record Components:
exception- anException
- All Implemented Interfaces:
ItemRegistrationResult
- Enclosing interface:
ItemRegistrationResult
public static record ItemRegistrationResult.ExceptionOccurred(@NotNull Exception exception)
extends Record
implements ItemRegistrationResult
A record of the
ItemRegistrationResult that indicates failure due to exception occurred.-
Nested Class Summary
Nested classes/interfaces inherited from interface ItemRegistrationResult
ItemRegistrationResult.DuplicateItem, ItemRegistrationResult.DuplicateName, ItemRegistrationResult.ExceptionOccurred, ItemRegistrationResult.Success -
Constructor Summary
ConstructorsConstructorDescriptionExceptionOccurred(@NotNull Exception exception) Creates an instance of aExceptionOccurredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull ExceptionReturns the value of theexceptionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExceptionOccurred
-
-
Method Details
-
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). -
exception
-