getExecution method

  1. @override
Future<Execution> getExecution(
  1. GetExecutionRequest request
)
override

Retrieves a specific Execution.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<Execution> getExecution(GetExecutionRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getExecution case final getExecution?) {
    return getExecution(request);
  }
  throw UnsupportedError('getExecution');
}