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

CheckAbort

CheckAbort[expr, failexpr]
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