pub fn custom(message: impl Into<String>, method: &'static str) -> Self {
        Self::new(ClientError::Custom(message.into()), method)
    }
Creates an error wrapping [`RpcError::Custom`].
core/lib/web3_decl/src/error.rs