Record Class ErrorDetails

java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.ErrorDetails

public record ErrorDetails(String platformErrorCode, String platformErrorSubcode, String platformErrorMessage, String postproxyNote) extends Record
  • Constructor Details

    • ErrorDetails

      public ErrorDetails(String platformErrorCode, String platformErrorSubcode, String platformErrorMessage, String postproxyNote)
      Creates an instance of a ErrorDetails record class.
      Parameters:
      platformErrorCode - the value for the platformErrorCode record component
      platformErrorSubcode - the value for the platformErrorSubcode record component
      platformErrorMessage - the value for the platformErrorMessage record component
      postproxyNote - the value for the postproxyNote record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • platformErrorCode

      public String platformErrorCode()
      Returns the value of the platformErrorCode record component.
      Returns:
      the value of the platformErrorCode record component
    • platformErrorSubcode

      public String platformErrorSubcode()
      Returns the value of the platformErrorSubcode record component.
      Returns:
      the value of the platformErrorSubcode record component
    • platformErrorMessage

      public String platformErrorMessage()
      Returns the value of the platformErrorMessage record component.
      Returns:
      the value of the platformErrorMessage record component
    • postproxyNote

      public String postproxyNote()
      Returns the value of the postproxyNote record component.
      Returns:
      the value of the postproxyNote record component