Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
authority_manager_error.cpp
Go to the documentation of this file.
1
6
#include "
consensus/authority/authority_manager_error.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::authority
,
AuthorityManagerError
, e) {
9
using
E =
kagome::authority::AuthorityManagerError
;
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
}
authority_manager_error.hpp
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::authority, AuthorityManagerError, e)
Definition:
authority_manager_error.cpp:8
kagome::authority::AuthorityManagerError
AuthorityManagerError
Definition:
authority_manager_error.hpp:12
kagome::authority
Definition:
digest_tracker_impl.hpp:13
core
consensus
authority
authority_manager_error.cpp
Generated by
1.8.11