Using Assertions As A Substitute For All Class-Based Exceptions
Definition:
Though the line between when to use assertions instead of class-based exceptions can be blurry at times, I think a general rule of thumb here would be to use class-based exceptions in any situation where there is a chance of recovery.
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring