Record Class ErrorResponseDTO

java.lang.Object
java.lang.Record
com.alpaca.dto.response.ErrorResponseDTO

public record ErrorResponseDTO(String apiPath, String message, LocalDateTime errorTime) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    The field for the apiPath record component.
    private final LocalDateTime
    The field for the errorTime record component.
    private final String
    The field for the message record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ErrorResponseDTO(String apiPath, String message, LocalDateTime errorTime)
    Creates an instance of a ErrorResponseDTO record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the apiPath record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the errorTime record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the message record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • apiPath

      private final String apiPath
      The field for the apiPath record component.
    • message

      private final String message
      The field for the message record component.
    • errorTime

      private final LocalDateTime errorTime
      The field for the errorTime record component.
  • Constructor Details

    • ErrorResponseDTO

      public ErrorResponseDTO(String apiPath, String message, LocalDateTime errorTime)
      Creates an instance of a ErrorResponseDTO record class.
      Parameters:
      apiPath - the value for the apiPath record component
      message - the value for the message record component
      errorTime - the value for the errorTime 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.
    • apiPath

      public String apiPath()
      Returns the value of the apiPath record component.
      Returns:
      the value of the apiPath record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • errorTime

      public LocalDateTime errorTime()
      Returns the value of the errorTime record component.
      Returns:
      the value of the errorTime record component