Kagome
Polkadot Runtime Engine in C++17
token_error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::NoFunds:
12  return "Funds are unavailable";
13  case E::WouldDie:
14  return "Account that must exist would die";
15  case E::BelowMinimum:
16  return "Account cannot exist with the funds that would be given";
17  case E::CannotCreate:
18  return "Account cannot be created";
19  case E::UnknownAsset:
20  return "The asset in question is unknown";
21  case E::Frozen:
22  return "Funds exist but are frozen";
23  case E::Unsupported:
24  return "Operation is not supported by the asset";
25  }
26  return "Unknown TokenError";
27 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::primitives, TokenError, e)
Definition: token_error.cpp:8