

Throw
Details

- You can use Throw and Catch to exit functions such as Nest, Fold, FixedPoint, and Scan.
- tag can be any expression.
- tag in Throw[value,tag] is reevaluated every time it is compared to form in Catch[expr,form].
- An error is generated and an unevaluated Throw is returned if there is no appropriate enclosing Catch to catch the Throw.
Examples
open all close allBasic Examples (3)
Scope (4)
Generalizations & Extensions (3)
Applications (3)
Properties & Relations (1)
Use Check to throw an exception if a message is generated:

Tech Notes
Related Guides
History
Introduced in 1988 (1.0) | Updated in 1996 (3.0) ▪ 2020 (12.2)
Text
Wolfram Research (1988), Throw, Wolfram Language function, https://reference.wolfram.com/language/ref/Throw.html (updated 2020).
CMS
Wolfram Language. 1988. "Throw." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Throw.html.
APA
Wolfram Language. (1988). Throw. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Throw.html
BibTeX
@misc{reference.wolfram_2025_throw, author="Wolfram Research", title="{Throw}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/Throw.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_throw, organization={Wolfram Research}, title={Throw}, year={2020}, url={https://reference.wolfram.com/language/ref/Throw.html}, note=[Accessed: 13-August-2025]}