Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Catches any Failure object thrown by an enclosed ThrowFailure evaluation
ResourceFunction["CatchFailure"][body] evaluates body, but returns a Failure[…] expression if a ThrowFailure[…] occurred during evaluation. | |
ResourceFunction["CatchFailure"][head,body] explicitly uses head as the tag of the returned a Failure[…] object. |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License