MCPcopy Create free account
hub / github.com/ElementsProject/lightning / error

Method error

plugins/lsps-plugin/src/proto/jsonrpc.rs:115–120  ·  view source on GitHub ↗
(error: RpcError, id: T)

Source from the content-addressed store, hash-verified

113
114impl JsonRpcResponse<()> {
115 pub fn error<T: Into<String>>(error: RpcError, id: T) -> Self {
116 Self {
117 id: id.into(),
118 body: JsonRpcResponseBody::Error { error },
119 }
120 }
121}
122
123impl<R> JsonRpcResponse<R> {

Callers 15

sendallMethod · 0.80
recvMethod · 0.80
setup_test_nodesFunction · 0.80
generate_runes_examplesFunction · 0.80
generate_wait_examplesFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_generate_examplesFunction · 0.64