Record Class CAIResponseError
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.CAIResponseError
- Record Components:
requestId- The request IDmessage- The error summaryerrorCode- The error kindattributes- The error attributesremediatingAction- The remediating action, if anyexception- The exception associated with the error, if anyblame- The blame assignmentextras- The extra error messages
- All Implemented Interfaces:
CAProtocolMessageType,CAIMessageType,CAIResponseType,com.io7m.hibiscus.api.HBMessageType,com.io7m.hibiscus.api.HBResponseType,com.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
public record CAIResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String,String> attributes, Optional<String> remediatingAction, Optional<Throwable> exception, CAIResponseBlame blame, List<com.io7m.seltzer.api.SStructuredError<CAErrorCode>> extras)
extends Record
implements CAIResponseType, com.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>
A command failed.
-
Constructor Summary
ConstructorsConstructorDescriptionCAIResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, Optional<Throwable> exception, CAIResponseBlame blame, List<com.io7m.seltzer.api.SStructuredError<CAErrorCode>> extras) A command failed. -
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.Returns the value of theexceptionrecord component.List<com.io7m.seltzer.api.SStructuredError<CAErrorCode>> 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
-
CAIResponseError
public CAIResponseError(UUID requestId, String message, CAErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, Optional<Throwable> exception, CAIResponseBlame blame, List<com.io7m.seltzer.api.SStructuredError<CAErrorCode>> extras) A command failed.- Parameters:
requestId- The request IDmessage- The error summaryerrorCode- The error kindattributes- The error attributesremediatingAction- The remediating action, if anyexception- The exception associated with the error, if anyblame- The blame assignmentextras- The extra error messages
-
-
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). -
requestId
Returns the value of therequestIdrecord component.- Specified by:
requestIdin interfaceCAIResponseType- Returns:
- the value of the
requestIdrecord component
-
message
Returns the value of themessagerecord component.- Specified by:
messagein interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>- Returns:
- the value of the
messagerecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Specified by:
errorCodein interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>- Returns:
- the value of the
errorCoderecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>- Returns:
- the value of the
attributesrecord component
-
remediatingAction
Returns the value of theremediatingActionrecord component.- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>- Returns:
- the value of the
remediatingActionrecord component
-
exception
Returns the value of theexceptionrecord component.- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>- Returns:
- the value of the
exceptionrecord component
-
blame
Returns the value of theblamerecord component.- Returns:
- the value of the
blamerecord component
-
extras
Returns the value of theextrasrecord component.- Returns:
- the value of the
extrasrecord component
-