Module abscissa_core::error::macros[][src]

Error-handling macros for the abscissa framework

This crate defines two error handling macros designed to produce formatted error messages from error kind enums that implement the Fail trait:

  • err!(kind, description) creates a new Error<Kind> with the given description. If additional parameters are given, description is treated as a format string, e.g. err!(kind, "something went wrong: {}", &wrongness).
  • fail!(kind, description) creates a new Error<kind> and returns it.