Record Class CJ1StructuredError
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1StructuredError
- All Implemented Interfaces:
CJ1ValueType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theremediatingActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1StructuredError
public CJ1StructuredError(@JsonPropertyDescription("The error code.") String errorCode, @JsonPropertyDescription("The error message.") String message, @JsonPropertyDescription("The error attributes.") Map<String, String> attributes, @JsonPropertyDescription("The remediating action.") Optional<String> remediatingAction) Creates an instance of aCJ1StructuredErrorrecord class.- Parameters:
errorCode- the value for theerrorCoderecord componentmessage- the value for themessagerecord componentattributes- the value for theattributesrecord componentremediatingAction- the value for theremediatingActionrecord component
-
-
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). -
errorCode
Returns the value of theerrorCoderecord component.- Returns:
- the value of the
errorCoderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
attributes
-
remediatingAction
-