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

Method fmt

plugins/lsps-plugin/src/proto/jsonrpc.rs:396–402  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

394
395impl fmt::Display for RpcError {
396 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
397 write!(
398 f,
399 "JSON-RPC Error (code: {}, message: {}, data: {:?})",
400 self.code, self.message, self.data
401 )
402 }
403}
404
405impl std::error::Error for RpcError {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected