catchAll static method

Future<GitObjectResult> catchAll(
  1. Future<GitObjectResult> catchFn()
)
override

Implementation

static Future<GitObjectResult> catchAll(
    Future<GitObjectResult> Function() catchFn) async {
  try {
    return catchFn();
  } on Exception catch (e) {
    return GitObjectResult.fail(e);
  }
}