RpcError

public final class RpcError implements JsonObject

Fields

CONNECTION_ERROR

public static final int CONNECTION_ERROR

INTERNAL_ERROR

public static final int INTERNAL_ERROR

INVALID_PARAMS

public static final int INVALID_PARAMS

INVALID_REQUEST

public static final int INVALID_REQUEST

METHOD_NOT_FOUND

public static final int METHOD_NOT_FOUND

PARSE_ERROR

public static final int PARSE_ERROR

WAIT_TIMEOUT

public static final int WAIT_TIMEOUT

Constructors

RpcError

public RpcError(int code)

RpcError

public RpcError(int code, String message)

RpcError

public RpcError(int code, String message, JsonObject data)

Methods

createFromJSONObject

public static RpcError createFromJSONObject(JSONObject json)

equals

public boolean equals(Object o)

getCode

public int getCode()

getData

public Object getData()

getMessage

public String getMessage()

hashCode

public int hashCode()

toJsonObject

public JSONObject toJsonObject()