Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Catch

Usage

Catch[expr] returns the argument of the first Throw generated in the evaluation of expr.
Catch[expr, form] returns value from the first Throw[value, tag] for which form matches tag.
Catch[expr, form, f] returns f[value, tag].


Notes

Catch[expr, ... ] always returns the value of expr if no Throw was generated during the evaluation.
form can be any expression, and is often a pattern.
tag in Throw[value, tag] is re-evaluated every time it is compared to form.
• See Section 2.6.9.
• See also: Check, CheckAbort, Reap.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: