Package com.mojang.realmsclient.client
Record Class RealmsError.AuthenticationError
java.lang.Object
java.lang.Record
com.mojang.realmsclient.client.RealmsError.AuthenticationError
- All Implemented Interfaces:
- RealmsError
- Enclosing interface:
- RealmsError
public static record RealmsError.AuthenticationError(String message)
extends Record
implements RealmsError
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.mojang.realmsclient.client.RealmsErrorRealmsError.AuthenticationError, RealmsError.CustomError, RealmsError.ErrorWithJsonPayload, RealmsError.ErrorWithRawPayload
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate final StringThe field for themessagerecord component.Fields inherited from interface com.mojang.realmsclient.client.RealmsErrorLOGGER, NO_MESSAGE
- 
Constructor SummaryConstructorsConstructorDescriptionAuthenticationError(String message) Creates an instance of aAuthenticationErrorrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
messageThe field for themessagerecord component.
- 
ERROR_CODEpublic static final int ERROR_CODE- See Also:
 
 
- 
- 
Constructor Details- 
AuthenticationErrorCreates an instance of aAuthenticationErrorrecord class.- Parameters:
- message- the value for the- messagerecord component
 
 
- 
- 
Method Details- 
errorCodepublic int errorCode()- Specified by:
- errorCodein interface- RealmsError
 
- 
errorMessage- Specified by:
- errorMessagein interface- RealmsError
 
- 
logMessage- Specified by:
- logMessagein interface- RealmsError
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
 
-