CheckAbort

CheckAbort[expr,failexpr]

evaluates expr, returning failexpr if an abort occurs.

Details

Examples

open allclose all

Basic Examples  (1)

Catch an abort in a part of a computation allowing the rest of it to continue:

Applications  (1)

A function that cleans up global settings that it makes in case of an abort:

The message has been turned back on even when the computation is interrupted:

Introduced in 1991
 (2.0)