resumeWithError method
Resumes with an errorMessage (raises RuntimeError in Python).
Implementation
@override
ProgressResult resumeWithError(int handle, String errorMessage) {
final ptr = Pointer<ffi_native.MontyHandle>.fromAddress(handle);
final cError = errorMessage.toNativeUtf8().cast<Char>();
final outError = calloc<Pointer<Char>>();
try {
final tag = ffi_native.monty_resume_with_error(ptr, cError, outError);
return _buildProgressResult(ptr, tag, outError.value);
} finally {
calloc
..free(cError)
..free(outError);
}
}