fetchRuntimeStatus static method
Future<CapsuleRuntimeStatus>
fetchRuntimeStatus(
- Client cloudApiClient, {
- required String projectId,
Implementation
static Future<CapsuleRuntimeStatus> fetchRuntimeStatus(
final Client cloudApiClient, {
required final String projectId,
}) async {
try {
return await cloudApiClient.status.getCapsuleRuntimeStatus(
cloudCapsuleId: projectId,
);
} on CapsuleStatusUnavailableException {
throw _statusUnavailableFailure(projectId);
} on NotFoundException {
throw _projectNotFoundFailure(projectId);
} on Exception catch (e, s) {
throw FailureException.nested(e, s, 'Failed to get the podlet status');
}
}