6 ms·
That is why the definition is recursive. If every failure triggers a new exception all the way up the call stack, then your program fails.
by gwright 8y ago
That is why the definition is recursive. If every failure triggers a new exception all the way up the call stack, then your program fails.
- jstimpfle 8y agoYeah, so what was the point to begin with?
- gwright 8y agoDo you understand Design By Contract? That is the theory that provides the distinction between a function/method finishing with success or with failure. The notion of contract is what distinguishes an exception from a glorified GOTO.
- gwright 8y agoIn re-reading, my response comes across as much more flippant than I intended. I was just trying to re-emphasize that the definition of an exception is an integral component of Meyer's design by contract methodology and not a stand alone concept.