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