Prototype implementation of next-generation error handling for Wolfram Language, from the Error Handling Working Group (EHWG)
Examples
Basic Examples (4)
Register a new error tag:
Create a new Failure[..] with the specified tag:
Construct and throw a Failure[..] as an exception, without handling the failure:
Handle the raised Failure:
Scope (2)
Define a function that can raise multiple types of failure:
Handle any type of failure:
Handle only Failure's with a specific tag:
Handle does not catch a Failure if no handler rule matches it:
Define a function that throws an error when called with unexpected arguments:
Say hello with a valid string argument:
Try to say hello with an invalid argument:
Disclosures
Compatibility
Wolfram Language Version 13.2
Version History
-
0.1.2
– 05 October 2023
-
0.1.1
– 25 August 2023
-
0.1.0
– 24 August 2023
MIT License
Paclet Source