Package com.alpaca.dto.response
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 -
Constructor Summary
ConstructorsConstructorDescriptionErrorResponseDTO(String apiPath, String message, LocalDateTime errorTime) Creates an instance of aErrorResponseDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapiPath()Returns the value of theapiPathrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorTimerecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
apiPath
The field for theapiPathrecord component. -
message
The field for themessagerecord component. -
errorTime
The field for theerrorTimerecord component.
-
-
Constructor Details
-
ErrorResponseDTO
Creates an instance of aErrorResponseDTOrecord class.- Parameters:
apiPath- the value for theapiPathrecord componentmessage- the value for themessagerecord componenterrorTime- the value for theerrorTimerecord 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). -
apiPath
Returns the value of theapiPathrecord component.- Returns:
- the value of the
apiPathrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
errorTime
Returns the value of theerrorTimerecord component.- Returns:
- the value of the
errorTimerecord component
-