Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Procedural Programming > Flow Control > CheckAbort >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF