A more comprehensive look into error handling in rust and how to properly handle the Result<> container. At times there may be a file read for the example.
- Basic handling when a function can raise multiple errors.
- basic_handling.rs]
- This example takes the first command line argument as a file name to read, if sepcified, or defaults to reading
R_multiflora.fnaif nothing is provided.
- Useful crates to extend error handling functionality
- simple_error
- error_chain (creating
ErrorKinds and matching on error type) - error_chaining (using
error-chainto link errors together)