Record Class AuthenticationErrorDto
java.lang.Object
java.lang.Record
com.app.security.dto.AuthenticationErrorDto
- Record Components:
error
- the error message describing the authentication failure
Data Transfer Object (DTO) used to represent an authentication error.
This class encapsulates an error message that is returned when an authentication error occurs, such as an invalid username or password.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationErrorDto
(String error) Creates an instance of aAuthenticationErrorDto
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
-
AuthenticationErrorDto
-
-
Method Details
-
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
-