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