Handling the Exceptions
Understand how to handle exceptions with coroutines.
If a caller sends a wrong value, the coroutine will terminate, raising an error. Does this ring a bell? Recall that when writing the maximum
coroutine, we asked you to assume that all values would be integers. Now, at this point in the course, we are ready to get hands-on experience in dealing with such cases like sending a value of the wrong type.
Discovering
...Get hands-on with 1400+ tech skills courses.