Assertions in production code
The assertion is an old paradigm that has been around since before the advent of object-oriented languages. An assertion is a statement that asserts that some condition is true, and causes an execution failure if the condition is not respected. It’s that simple.
Failure can be translated into an exception, a runtime error, or even a runtime failure resulting in unstoppable application termination.



