Day 6 - Error handling
Use exceptions rather than return codes
Provide context with exceptions
- Each function should provide enough context to determine the source and location of an error. Create informative error messages and pass them along with your exceptions
Define exception classes in terms of a caller's needs
- When we define exception classes in an application, our most important concern should be how they are caught