fail - a new error handling story
Contains three parts (only a sketch right now):
- A
Failtrait andErrortype wrapper, which acts as a dynamically dispatched, open sum type match_err!, a macro to give match-like syntax for downcasting theErrortypederive(Fail), a derive for making your type an error type
Example use case:
extern crate fail;
extern crate fail_derive; // haven't actually implemented this yet