Record Class IdUResponseError
java.lang.Object
java.lang.Record
com.io7m.idstore.protocol.user.IdUResponseError
- Record Components:
requestId- The request IDmessage- The humanly-readable error messageerrorCode- The error codeattributes- The error attributesremediatingAction- The remediating action, if anyblame- The blame assignment
- All Implemented Interfaces:
com.io7m.hibiscus.api.HBMessageType, IdProtocolMessageType, IdUMessageType, IdUResponseType, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>
public record IdUResponseError(UUID requestId, String message, IdErrorCode errorCode, Map<String,String> attributes, Optional<String> remediatingAction, IdUResponseBlame blame)
extends Record
implements IdUResponseType, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>
An error response.
-
Constructor Summary
ConstructorsConstructorDescriptionIdUResponseError(UUID requestId, String message, IdErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, IdUResponseBlame blame) An error response. -
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.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
-
IdUResponseError
public IdUResponseError(UUID requestId, String message, IdErrorCode errorCode, Map<String, String> attributes, Optional<String> remediatingAction, IdUResponseBlame blame) An error response.- Parameters:
requestId- The request IDmessage- The humanly-readable error messageerrorCode- The error codeattributes- The error attributesremediatingAction- The remediating action, if anyblame- The blame assignment
-
-
Method Details
-
exception
- Specified by:
exceptionin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>- Returns:
- The associated exception, if any
-
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
Returns the value of therequestIdrecord component.- Specified by:
requestIdin interfaceIdUResponseType- Returns:
- the value of the
requestIdrecord component
-
message
Returns the value of themessagerecord component.- Specified by:
messagein interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>- Returns:
- the value of the
messagerecord component
-
errorCode
Returns the value of theerrorCoderecord component.- Specified by:
errorCodein interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>- Returns:
- the value of the
errorCoderecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>- Returns:
- the value of the
attributesrecord component
-
remediatingAction
Returns the value of theremediatingActionrecord component.- Specified by:
remediatingActionin interfacecom.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>- Returns:
- the value of the
remediatingActionrecord component
-
blame
-