Class RpcError

  • All Implemented Interfaces:
    java.io.Serializable

    public class RpcError
    extends java.io.IOException
    RpcError defines the error that occurred during communicating through jsonrpc
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RpcError()  
      RpcError​(long code, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getCode()
      Returns the code of rpc error
      java.lang.String getMessage()
      Returns the message of rpc error
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RpcError

        public RpcError()
      • RpcError

        public RpcError​(long code,
                        java.lang.String message)
    • Method Detail

      • getCode

        public long getCode()
        Returns the code of rpc error
        Returns:
        error code
      • getMessage

        public java.lang.String getMessage()
        Returns the message of rpc error
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        error message