记录类 RealmsError.ErrorWithJsonPayload
java.lang.Object
java.lang.Record
com.mojang.realmsclient.client.RealmsError.ErrorWithJsonPayload
- 所有已实现的接口:
RealmsError
- 封闭接口:
RealmsError
public static record RealmsError.ErrorWithJsonPayload(int httpCode, int code, @Nullable String reason, @Nullable String message)
extends Record
implements RealmsError
-
嵌套类概要
从接口继承的嵌套类/接口 com.mojang.realmsclient.client.RealmsError
RealmsError.AuthenticationError, RealmsError.CustomError, RealmsError.ErrorWithJsonPayload, RealmsError.ErrorWithRawPayload
-
字段概要
字段修饰符和类型字段说明private final int
code
记录组件的字段。private final int
httpCode
记录组件的字段。private final String
message
记录组件的字段。private final String
reason
记录组件的字段。从接口继承的字段 com.mojang.realmsclient.client.RealmsError
LOGGER, NO_MESSAGE
-
构造器概要
构造器构造器说明ErrorWithJsonPayload
(int httpCode, int code, String reason, String message) 创建ErrorWithJsonPayload
记录类的实例。 -
方法概要
-
字段详细资料
-
httpCode
private final int httpCodehttpCode
记录组件的字段。 -
code
private final int codecode
记录组件的字段。 -
reason
reason
记录组件的字段。 -
message
message
记录组件的字段。
-
-
构造器详细资料
-
方法详细资料
-
errorCode
public int errorCode()- 指定者:
errorCode
在接口中RealmsError
-
errorMessage
- 指定者:
errorMessage
在接口中RealmsError
-
logMessage
- 指定者:
logMessage
在接口中RealmsError
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)
对参考组件进行比较;使用 '==' 对基元组件进行比较 -
httpCode
public int httpCode()返回httpCode
记录组件的值。- 返回:
httpCode
记录组件的值
-
code
public int code()返回code
记录组件的值。- 返回:
code
记录组件的值
-
reason
返回reason
记录组件的值。- 返回:
reason
记录组件的值
-
message
返回message
记录组件的值。- 返回:
message
记录组件的值
-