Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

$AssertFunction

$AssertFunction
specifies a function to apply to assertions that fail.
You can change the behavior when an assertion fails by assigning to $AssertFunction. This function throws an exception when an assertion fails:
Here the exception thrown by the assertion function is caught:
You can change the behavior when an assertion fails by assigning to $AssertFunction. This function throws an exception when an assertion fails:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Here the exception thrown by the assertion function is caught:
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF