Defensive Programming and Exceptions Homework
Task 1. Assertions
assertionsin the code from the project
Assertions-Homeworkto ensure all possible preconditions and postconditions are checked.
Task 2. Exception handling
exceptionhandling (where missing) and refactor all incorrect error handling in the code from the
Exceptions-Homeworkproject to follow the best practices for using exceptions.