Kagome
Polkadot Runtime Engine in C++17
authority_manager_error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::UNKNOWN_ENGINE_ID:
12  return "Unknown engine_id";
13  case E::ORPHAN_BLOCK_OR_ALREADY_FINALIZED:
14  return "Block is not descendant of last finalized block";
15  case E::CAN_NOT_SAVE_STATE:
16  return "Can not save state";
17  case E::CANT_RECALCULATE_ON_PRUNED_STATE:
18  return "Can't recalculate authority set ids on a pruned database";
19  case E::FAILED_TO_INITIALIZE_SET_ID:
20  return "Failed to initialize the current authority set id on startup";
21  }
22  return "unknown error (invalid AuthorityManagerError)";
23 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::authority, AuthorityManagerError, e)