Package cloud.quasarch.akash.impl.model
Record Class OperationFailure
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.OperationFailure
- Record Components:
errorType-AkashErrorTypefailureInnerMessage- inner message
Failure of a operation
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFailure(AkashErrorType errorType, String failureInnerMessage) Creates an instance of aOperationFailurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorTyperecord component.Returns the value of thefailureInnerMessagerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OperationFailure
Creates an instance of aOperationFailurerecord class.- Parameters:
errorType- the value for theerrorTyperecord componentfailureInnerMessage- the value for thefailureInnerMessagerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
errorType
Returns the value of theerrorTyperecord component.- Returns:
- the value of the
errorTyperecord component
-
failureInnerMessage
Returns the value of thefailureInnerMessagerecord component.- Returns:
- the value of the
failureInnerMessagerecord component
-