getBuild static method
Future<AppBuildDetail>
getBuild(
- Client cloudApiClient, {
- required String projectId,
- required UuidValue buildId,
Returns the app build buildId of project projectId with its steps.
Throws FailureException if the build is not in the project, or if it cannot be fetched.
Implementation
static Future<AppBuildDetail> getBuild(
Client cloudApiClient, {
required String projectId,
required UuidValue buildId,
}) async {
try {
return await cloudApiClient.appBuilds.getBuild(
cloudCapsuleId: projectId,
buildId: buildId,
);
} on NotFoundException catch (e) {
throw FailureException(error: e.message);
} on Exception catch (e, stackTrace) {
throw FailureException.nested(
e,
stackTrace,
'Failed to fetch the app build $buildId.',
);
}
}