Kagome
Polkadot Runtime Engine in C++17
block_storage_error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::BLOCK_EXISTS:
12  return "Block already exists on the chain";
13  case E::HEADER_NOT_FOUND:
14  return "Block header was not found";
15  case E::GENESIS_BLOCK_ALREADY_EXISTS:
16  return "Genesis block already exists";
17  case E::FINALIZED_BLOCK_NOT_FOUND:
18  return "Finalized block not found. Possibly storage is corrupted";
19  case E::GENESIS_BLOCK_NOT_FOUND:
20  return "Genesis block not found";
21  case E::BLOCK_TREE_LEAVES_NOT_FOUND:
22  return "Genesis block not found";
23  }
24  return "Unknown error";
25 }
OUTCOME_CPP_DEFINE_CATEGORY(kagome::blockchain, BlockStorageError, e)