CheckAbort[expr, failexpr] evaluates expr, returning failexpr if an abort occurs.
"Interrupting Calculations" describes how you can interrupt a Mathematica computation by pressing appropriate keys on your keyboard. In some cases, you may want to simulate ...
The following is the sequence of steps that Mathematica follows in evaluating an expression like h[e_1,e_2…]. Every time the expression changes, Mathematica effectively ...
Mathematica makes it easy to "bulletproof" packages, and prevent features of their environment from affecting their internal operation.
Traditional procedural programming languages typically require programmers to define an explicit "flow of control" at every stage in their programs. Mathematica provides ...
Abort
(Built-in Mathematica Symbol) Abort[] generates an interrupt to abort a computation.
AbortProtect[expr] evaluates expr, saving any aborts until the evaluation is complete.
Check
(Built-in Mathematica Symbol) Check[expr, failexpr] evaluates expr, and returns the result, unless messages were generated, in which case it evaluates and returns failexpr. Check[expr, failexpr, ...
This example demonstrates how you can use the InvokeThread option of user interface functions to allow user interface updates to be visible when performing a long Mathematica ...
Catch
(Built-in Mathematica Symbol) Catch[expr] returns the argument of the first Throw generated in the evaluation of expr. Catch[expr, form] returns value from the first Throw[value, tag] for which form ...