- TIE-0240x
- 7. Exception Safety. Constant Objects
- 7.3 Excercise: Implementing Exception Safety
Excercise: Implementing Exception Safety¶
This exercise class covers documenting exception quarantees and the impact of exceptions on programming. You need to answer a few questions during class.
The files needed in this task can be pulled from version control. They are in repository student_template_project. You must set it as a remote to your local repository. The codes needed in this exercise are in the directory EX6. Note that you do not have rights to update the repository. You need to set the remote only once.
Exception Quarantees and Implementation of the Interface¶
Read the interface documentation of 'Date' class. Consider its exception situations: How are they related to preconditions? What kind of state an object has after an exception? What would be the exception guarantee of services? Based on this consider which exceptions and quarantees hold for the class Name
.
A+ presents the exercise submission form here.