Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
block_builder_error.cpp
Go to the documentation of this file.
1
6
#include "
authorship/impl/block_builder_error.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::authorship
,
BlockBuilderError
, e) {
9
using
E =
kagome::authorship::BlockBuilderError
;
10
switch
(e) {
11
case
E::EXTRINSIC_APPLICATION_FAILED:
12
return
"extrinsic was not applied"
;
13
case
E::EXHAUSTS_RESOURCES:
14
return
"extrinsic would exhaust the resources of the current block"
;
15
case
E::BAD_MANDATORY:
16
return
"mandatory extrinsic returned an error, block cannot be produced"
;
17
}
18
return
"unknown error"
;
19
}
block_builder_error.hpp
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::authorship, BlockBuilderError, e)
Definition:
block_builder_error.cpp:8
kagome::authorship
Definition:
block_builder.hpp:13
kagome::authorship::BlockBuilderError
BlockBuilderError
Definition:
block_builder_error.hpp:13
core
authorship
impl
block_builder_error.cpp
Generated by
1.8.11