Class RpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.crypto.rpc.RpcException
-
Constructor Summary
ConstructorsConstructorDescriptionRpcException(int code, String message, Object data, boolean http) An error with a code, a message and the optional error data. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RpcException
-
-
Method Details
-
http
An HTTP failure. -
getCode
public int getCode()The HTTP status or the JSON-RPC error code. -
isHttp
public boolean isHttp()Whether the code is an HTTP status. -
getData
The JSON-RPC error'sdatamember, or the HTTP body.
-