Package dev.postproxy.sdk.model
Record Class ErrorDetails
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.ErrorDetails
-
Constructor Summary
ConstructorsConstructorDescriptionErrorDetails(String platformErrorCode, String platformErrorSubcode, String platformErrorMessage, String postproxyNote) Creates an instance of aErrorDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theplatformErrorCoderecord component.Returns the value of theplatformErrorMessagerecord component.Returns the value of theplatformErrorSubcoderecord component.Returns the value of thepostproxyNoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ErrorDetails
public ErrorDetails(String platformErrorCode, String platformErrorSubcode, String platformErrorMessage, String postproxyNote) Creates an instance of aErrorDetailsrecord class.- Parameters:
platformErrorCode- the value for theplatformErrorCoderecord componentplatformErrorSubcode- the value for theplatformErrorSubcoderecord componentplatformErrorMessage- the value for theplatformErrorMessagerecord componentpostproxyNote- the value for thepostproxyNoterecord 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). -
platformErrorCode
Returns the value of theplatformErrorCoderecord component.- Returns:
- the value of the
platformErrorCoderecord component
-
platformErrorSubcode
Returns the value of theplatformErrorSubcoderecord component.- Returns:
- the value of the
platformErrorSubcoderecord component
-
platformErrorMessage
Returns the value of theplatformErrorMessagerecord component.- Returns:
- the value of the
platformErrorMessagerecord component
-
postproxyNote
Returns the value of thepostproxyNoterecord component.- Returns:
- the value of the
postproxyNoterecord component
-