cli-failure
Provides Failure(String)
implementing std::error::Error
. Includes convenience macros making it perfect for usage with wrap-match
in CLIs.
This crate should not be used in libraries. Instead, use something like thiserror
. For libraries, it is much better to have specific errors so library users can
handle them better.
Example
// wrap-match is not required, but it is highly recommended