Skip to main content

encode_error

Function encode_error 

Source
pub fn encode_error(
    id: &str,
    err: &RpcError,
    dialect: ErrorDialect,
    result_error: bool,
) -> String
Expand description

Serializes a CALLERROR ([4, …]) or, with result_error, a CALLRESULTERROR ([5, …]).