RemoteRpcErrorException.java

net.minecraft.server.jsonrpc.methods.RemoteRpcErrorException

信息

  • 全限定名:net.minecraft.server.jsonrpc.methods.RemoteRpcErrorException
  • 类型:public class
  • 包:net.minecraft.server.jsonrpc.methods
  • 源码路径:src/main/java/net/minecraft/server/jsonrpc/methods/RemoteRpcErrorException.java
  • 起始行号:L6
  • 继承:RuntimeException
  • 职责:

    TODO

字段/常量

  • id

    • 类型: JsonElement
    • 修饰符: private final
    • 源码定位: L7
    • 说明:

      TODO

  • error

    • 类型: JsonObject
    • 修饰符: private final
    • 源码定位: L8
    • 说明:

      TODO

内部类/嵌套类型

构造器

public RemoteRpcErrorException(JsonElement id, JsonObject error) @ L10

  • 构造器名:RemoteRpcErrorException
  • 源码定位:L10
  • 修饰符:public

参数:

  • id: JsonElement
  • error: JsonObject

说明:

TODO

方法

下面的方法块按源码顺序生成。

private JsonObject getError() @ L15

  • 方法名:getError
  • 源码定位:L15
  • 返回类型:JsonObject
  • 修饰符:private

参数:

说明:

TODO

private JsonElement getId() @ L19

  • 方法名:getId
  • 源码定位:L19
  • 返回类型:JsonElement
  • 修饰符:private

参数:

说明:

TODO

代码

public class RemoteRpcErrorException extends RuntimeException {
    private final JsonElement id;
    private final JsonObject error;
 
    public RemoteRpcErrorException(JsonElement id, JsonObject error) {
        this.id = id;
        this.error = error;
    }
 
    private JsonObject getError() {
        return this.error;
    }
 
    private JsonElement getId() {
        return this.id;
    }
}

引用的其他类