Record Class CJ1ResponseError
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1ResponseError
- Record Components:
requestId- The request IDmessage- The error summaryerrorCode- The error kindattributes- The error attributesremediatingAction- The remediating action, if anyblame- The blame assignmentextras- The extra error messages
- All Implemented Interfaces:
CJ1MessageType, CJ1ResponseType, CJ1ValueType
public record CJ1ResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String,String> attributes, Optional<String> remediatingAction, CJ1ResponseBlame blame, List<CJ1StructuredError> extras)
extends Record
implements CJ1ResponseType
A command failed.
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1ResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, CJ1ResponseBlame blame, List<CJ1StructuredError> extras) Creates an instance of aCJ1ResponseErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.blame()Returns the value of theblamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.extras()Returns the value of theextrasrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of theremediatingActionrecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1ResponseError
public CJ1ResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, CJ1ResponseBlame blame, List<CJ1StructuredError> extras) Creates an instance of aCJ1ResponseErrorrecord class.- Parameters:
requestId- the value for therequestIdrecord componentmessage- the value for themessagerecord componenterrorCode- the value for theerrorCoderecord componentattributes- the value for theattributesrecord componentremediatingAction- the value for theremediatingActionrecord componentblame- the value for theblamerecord componentextras- the value for theextrasrecord 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). -
requestId
-
message
-
errorCode
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-
remediatingAction
Returns the value of theremediatingActionrecord component.- Returns:
- the value of the
remediatingActionrecord component
-
blame
-
extras
-