Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
transaction_pool_error.cpp
Go to the documentation of this file.
1
6
#include "
transaction_pool/transaction_pool_error.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::transaction_pool
,
TransactionPoolError
, e) {
9
using
E =
kagome::transaction_pool::TransactionPoolError
;
10
switch
(e) {
11
case
E::TX_ALREADY_IMPORTED:
12
return
"Transaction has already been imported to the pool"
;
13
case
E::TX_NOT_FOUND:
14
return
"Transaction not found in the pool"
;
15
case
E::POOL_IS_FULL:
16
return
"Transaction pool is full"
;
17
}
18
return
"Unknown transaction pool error"
;
19
}
transaction_pool_error.hpp
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::transaction_pool, TransactionPoolError, e)
Definition:
transaction_pool_error.cpp:8
kagome::transaction_pool::TransactionPoolError
TransactionPoolError
Definition:
transaction_pool_error.hpp:12
kagome::transaction_pool
Definition:
author_api_impl.hpp:46
core
transaction_pool
transaction_pool_error.cpp
Generated by
1.8.11