パッケージ org.nkjmlab.util.jsonrpc

クラス JsonRpcError

java.lang.Object
org.nkjmlab.util.jsonrpc.JsonRpcError

public class JsonRpcError extends Object
作成者:
nkjm
関連項目:
  • コンストラクタの詳細

    • JsonRpcError

      public JsonRpcError()
    • JsonRpcError

      public JsonRpcError(int code, String message, String data)
  • メソッドの詳細

    • create

      public static JsonRpcError create(int faultCode, String faultString, Throwable t)
    • getCode

      public int getCode()
    • setCode

      public void setCode(int code)
    • setMessage

      public void setMessage(String message)
    • setData

      public void setData(String data)
    • getMessage

      public String getMessage()
    • getData

      public String getData()
    • toString

      public String toString()
      オーバーライド:
      toString クラス内 Object
    • createInvalidRequest

      public static JsonRpcError createInvalidRequest(Throwable e)
      The JSON sent is not a valid Request object.
      パラメータ:
      e -
      戻り値:
    • createMethodNotFound

      public static JsonRpcError createMethodNotFound(Throwable e)
      The method does not exist / is not available.
      パラメータ:
      e -
      戻り値:
    • createInvalidParams

      public static JsonRpcError createInvalidParams(Exception e)
      Invalid method parameter(s).
      パラメータ:
      e -
      戻り値:
    • createInternalError

      public static JsonRpcError createInternalError(Throwable e)
      Internal JSON-RPC error.
      パラメータ:
      e -
      戻り値:
    • createParseError

      public static JsonRpcError createParseError(Exception e)
      Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
      パラメータ:
      e -
      戻り値: