#[derive(ExecutionFail)]
{
// Attributes available to this derive:
#[execution_fail]
}
Expand description
Implements ExecutionFail
trait for the given enum. Additionally,
From<MyEnum> for ExecutionError
conversion is implemented, allowing to use errors
in the service code.
Enumeration should have an explicit discriminant for each error kind.
The documentation comments for each error kind are used to derive the Display
trait.
§Container Attributes
§crate
#[execution_fail(crate = "path")]
Prefix of the exonum
crate has two main values - crate
or exonum
. The default value
is exonum
.
§kind
#[execution_fail(kind = "runtime")]
Error kind with the following possible values: service
, runtime
. The default value is
service
.