Errors are your friend.
This is a pretty bizarre claim, so let's back it up.
The problem with errors, as opposed to mere errors, is that the name is a public relations disaster. Math assignment errors at school got you bad grades; driving errors cause bumps and scrapes and endless letters from insurance companies; tax office errors mess with your tax bill.
In this chapter, we will cover the following topics:
- Swift error handling mechanisms
- Error type enums
- Throwing and catching errors
- Error propagation