catchAll static method

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

Implementation

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