pub fn collect_errors(errors: Vec<Error>) -> Result<()>
Collect multiple errors from a batch dispatch. Returns Ok(()) if the vec is empty, or Err containing the first error otherwise.
Ok(())
Err