Record Class JoinServerErrorResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.sessionserver.model.JoinServerErrorResponse
-
Constructor Summary
ConstructorsConstructorDescriptionJoinServerErrorResponse(@Nullable String error, @Nullable String errorMessage, @Nullable String error_description, @Nullable String cause) Creates an instance of aJoinServerErrorResponserecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringerror()Returns the value of theerrorrecord component.@Nullable StringReturns the value of theerror_descriptionrecord component.@Nullable StringReturns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JoinServerErrorResponse
public JoinServerErrorResponse(@Nullable String error, @Nullable String errorMessage, @Nullable String error_description, @Nullable String cause) Creates an instance of aJoinServerErrorResponserecord class.- Parameters:
error- the value for theerrorrecord componenterrorMessage- the value for theerrorMessagerecord componenterror_description- the value for theerror_descriptionrecord componentcause- the value for thecauserecord 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). -
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
-
error_description
Returns the value of theerror_descriptionrecord component.- Returns:
- the value of the
error_descriptionrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-