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 aErrorResponseDTO
record class. -
Method Summary
Modifier and TypeMethodDescriptionapiPath()
Returns the value of theapiPath
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorTime
record component.final int
hashCode()
Returns a hash code value for this object.message()
Returns the value of themessage
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
apiPath
The field for theapiPath
record component. -
message
The field for themessage
record component. -
errorTime
The field for theerrorTime
record component.
-
-
Constructor Details
-
ErrorResponseDTO
Creates an instance of aErrorResponseDTO
record class.- Parameters:
apiPath
- the value for theapiPath
record componentmessage
- the value for themessage
record componenterrorTime
- the value for theerrorTime
record 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 theapiPath
record component.- Returns:
- the value of the
apiPath
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
errorTime
Returns the value of theerrorTime
record component.- Returns:
- the value of the
errorTime
record component
-