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