MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / error

Function error

fendermint/eth/api/src/error.rs:53–59  ·  view source on GitHub ↗
(exit_code: ExitCode, msg: impl ToString)

Source from the content-addressed store, hash-verified

51}
52
53pub fn error<T>(exit_code: ExitCode, msg: impl ToString) -> Result<T, JsonRpcError> {
54 Err(JsonRpcError {
55 code: exit_code.value().into(),
56 message: msg.to_string(),
57 data: None,
58 })
59}
60
61pub fn error_with_data<T, E: Serialize>(
62 exit_code: ExitCode,

Callers 11

header_by_hashMethod · 0.85
transaction_by_indexMethod · 0.85
tx_by_hashMethod · 0.85
read_evm_actorMethod · 0.85
fee_historyFunction · 0.85
get_transaction_by_hashFunction · 0.85
get_transaction_receiptFunction · 0.85
get_filter_changesFunction · 0.85
get_filter_logsFunction · 0.85
subscribeFunction · 0.85
handle_get_templatesFunction · 0.85

Calls 2

to_stringMethod · 0.80
intoMethod · 0.45

Tested by

no test coverage detected