chapter forty
40 Error Handling with Try
After reading this lesson, you will be able to:
- Represent a computation that can fail using Try
- Decompose it using pattern matching
- Manipulate its value using the map, flatten, and flatMap operations
- Chain several Try instances using for-comprehension
- Check if a computation has failed and retrieve its value.