Kagome
Polkadot Runtime Engine in C++17
authority_update_observer_error.cpp
Go to the documentation of this file.
1 
7 
10  e) {
12  switch (e) {
13  case E::UNSUPPORTED_MESSAGE_TYPE:
14  return "unsupported message type";
15  case E::WRONG_AUTHORITY_INDEX:
16  return "wrong authority index (out of bound)";
17  case E::NO_SCHEDULED_CHANGE_APPLIED_YET:
18  return "no previous change (scheduled) applied yet";
19  case E::NO_FORCED_CHANGE_APPLIED_YET:
20  return "no previous change (forced) applied yet";
21  case E::NO_PAUSE_APPLIED_YET:
22  return "no previous change (pause) applied yet";
23  case E::NO_RESUME_APPLIED_YET:
24  return "no previous change (resume) applied yet";
25  }
26  return "unknown error (invalid AuthorityUpdateObserverError)";
27 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::authority, AuthorityUpdateObserverError, e)