Kagome
Polkadot Runtime Engine in C++17
block_builder_error.cpp
Go to the documentation of this file.
1 
7 
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 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::authorship, BlockBuilderError, e)