Record Class ErrorResponse
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.response.ErrorResponse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetails()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
path
The field for thepathrecord component. -
error
The field for theerrorrecord component. -
errorMessage
The field for theerrorMessagerecord component. -
details
-
-
Constructor Details
-
ErrorResponse
public ErrorResponse(String path, @Nullable String error, @Nullable String errorMessage, @Nullable Map<String, Object> details) Creates an instance of aErrorResponserecord class.- Parameters:
path- the value for thepathrecord componenterror- the value for theerrorrecord componenterrorMessage- the value for theerrorMessagerecord componentdetails- the value for thedetailsrecord component
-
-
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). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
details
-