Package | Description |
---|---|
uk.oczadly.karl.jnano.rpc | |
uk.oczadly.karl.jnano.rpc.exception |
Modifier and Type | Method | Description |
---|---|---|
RpcException |
RpcResponseDeserializerImpl.parseException(String msg) |
Modifier and Type | Method | Description |
---|---|---|
void |
QueryCallback.onFailure(RpcException ex,
Q request) |
This method is called when there is an error with the request data, returned response data, or the node.
|
Modifier and Type | Method | Description |
---|---|---|
<R extends RpcResponse> |
RpcResponseDeserializer.deserialize(String response,
Class<R> responseClass) |
Deserializes the raw response string given from the node into the appropriate
RpcResponse object, or
throws the relevant RpcException exception if an error is returned. |
<R extends RpcResponse> |
RpcResponseDeserializerImpl.deserialize(String response,
Class<R> responseClass) |
|
<Q extends RpcRequest<R>,R extends RpcResponse> |
RpcQueryNode.processRequest(Q request) |
Sends a query request to the node via RPC with the default timeout.
|
<Q extends RpcRequest<R>,R extends RpcResponse> |
RpcQueryNode.processRequest(Q request,
int timeout) |
Sends a query request to the node via RPC with the specified timeout.
|
<R extends RpcResponse> |
RpcQueryNode.processRequestRaw(String jsonRequest,
int timeout,
Class<R> responseClass) |
Sends a raw JSON query to the RPC server, and then returns an object in the specified class containing the
deserialized response data.
|
Modifier and Type | Class | Description |
---|---|---|
class |
RpcControlDisabledException |
Thrown when a request needs control access but it's disabled on the node.
|
class |
RpcEntityNotFoundException |
Thrown if one of the referenced entities (eg.
|
class |
RpcFeatureDisabledException |
Thrown if a requested command requires a feature which is disabled on the node.
|
class |
RpcInternalException |
Thrown if the node encounters an internal error.
|
class |
RpcInvalidArgumentException |
Thrown if one of the given request arguments are not valid.
|
class |
RpcInvalidRequestJsonException |
Thrown if the node was unable to parse the sent request.
|
class |
RpcInvalidResponseException |
Thrown if the node returns an invalid JSON response.
|
class |
RpcUnknownCommandException |
Thrown if the node does not understand the request command.
|
class |
RpcUnsafeNotAllowedException |
Thrown when an unsafe request is executed, but is disabled on the node.
|
class |
RpcWalletLockedException |
Thrown when a query needs access to a wallet which is locked.
|
Copyright © 2020. All rights reserved.