Empty Heap Exception Algorithm

Alternative approaches to exception handling in software are mistake checking, which keeps normal plan flow with later explicit checks for contingency reported use special return values or some auxiliary global variable such as c's errno or floating point status flags; or input validation to preemptively filter exceptional cases. Exception handling is the procedure of reacting to the occurrence, during calculation, of exceptions – anomalous or exceptional conditions necessitate special processing – often disrupting the normal flow of plan execution. 

Originally, software exception handling included both resumable exceptions (resumption semantics), like most hardware exceptions, and non-resumable exceptions (termination semantics).The first documents on structured exception handling were Goodenough (1975a) and Goodenough (1975b).(see C++ standardization discussion, quoted below) and are no longer in common purpose, though provided by programming languages like common LISP and Dylan.

Empty Heap Exception source code, pseudocode and analysis