Module signal_gen_cjds66_lib::error [−][src]
Expand description
Handle errors in a common way for everything in this crate. This is mostly just wrapping the clap crate’s Error type, and adding numeric exit codes to each of their types of errors which are suitable for returning to the parent shell or execution environment, to support properly checking various error conditions for advanced scripting purposes (bash scripts, Windows batch files, or Powershell scripts, for example).
Structs
Traits
Easily construct a new Error value using one of these convenience functions.
Functions
Get an exit code for each kind of error. This code is suitable for passing back to the parent shell or execution environment as an exit value, to facilitate proper error checking when using this library’s functions with advanced scripting, such as with a bash script, Windows batch file, or PowerShell script.
Handle the return value of a function from the command
module,
suppressing any non-important types of errors.