[−][src]Module abscissa_core::error::macros
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 newError<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 newError<kind>
and returns it.