resumeWithError method

  1. @override
Future<MontyProgress> resumeWithError(
  1. String errorMessage
)
override

Resumes a paused execution by raising an error with errorMessage.

Implementation

@override
Future<MontyProgress> resumeWithError(String errorMessage) async {
  final response = await _send<_ProgressResponse>(
    _ResumeWithErrorRequest(_nextId++, errorMessage),
  );

  return response.progress;
}