Module dev.eidentification.bankid
Record Class ErrorResponse
java.lang.Object
java.lang.Record
dev.eidentification.bankid.client.response.ErrorResponse
- Record Components:
error
- The 'error' field represents the type of error.details
- The 'details' field holds more detailed information about the error.
- All Implemented Interfaces:
Response
The ErrorResponse class is a record that represents an error response from the BankID API.
It contains information about the error code 'error' and the details of the error 'details'.
Both 'error' and 'details' can be accessed using the associated getter methods.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorResponse
(ErrorType error, String details) Creates an instance of aErrorResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()
Returns the value of thedetails
record component.final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
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)
. -
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-
details
Returns the value of thedetails
record component.- Returns:
- the value of the
details
record component
-