Strategy Elements
Jakob Jenkov |
An exception handling strategy typically consists of the following elements:
- Error detection
- Error information gathering
- Throwing the exception
- Propagating the exception, possibly adding context information to it.
- Catching and reacting to the exception:
- Retrying the action, if possible.
- Notifying relevant parties.
I will talk a bit about each of these elements in the following pages.
Next: Error Detection
Tweet | |
Jakob Jenkov |