This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

CheckAbort

CheckAbort
evaluates expr, returning failexpr if an abort occurs.
  • CheckAbort absorbs any aborts it handles, and does not propagate them further.
Catch an abort in a part of a computation allowing the rest of it to continue:
Catch an abort in a part of a computation allowing the rest of it to continue:
In[1]:=
Click for copyable input
Out[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:
New in 2