pub fn internal_rpc_err_with_data( msg: impl Into<String>, data: &[u8], ) -> ErrorObject<'static>
Constructs an internal JSON-RPC error with data