Template:Computer Programming/Error Handling/3
This technique does not look very nice in mathematical calculations.
Global variable
editAn error condition is stored inside a global variable. This variable is then read directly or indirectly via a function.