Record Class EODApiErrorResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODApiErrorResponse
- Record Components:
error- provider error messagecode- provider error code
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODApiErrorResponse(String error, Integer code)
extends Record
implements GenericIntegrationResponse
Standard error payload returned by EOD-backed endpoints.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODApiErrorResponse(String error, Integer code) Creates an instance of aEODApiErrorResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns true when the provider did not return an error payload.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EODApiErrorResponse
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the provider did not return an error payload.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
toString
-
hashCode
-
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). -
error
-
code
-