Function mock_err

Source
fn mock_err(error: Error) -> RpcError