Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
changes_trie
face
in_memory
rocksdb
trie
buffer_map_types.hpp
database_error.cpp
database_error.hpp
predefined_keys.hpp
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
database_error.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_STORAGE_DATABASE_ERROR_DATABASE_ERROR_HPP
7
#define KAGOME_CORE_STORAGE_DATABASE_ERROR_DATABASE_ERROR_HPP
8
9
#include <
outcome/outcome.hpp
>
10
11
namespace
kagome::storage
{
12
16
enum class
DatabaseError
: int {
17
OK
= 0,
18
NOT_FOUND
= 1,
19
CORRUPTION
= 2,
20
NOT_SUPPORTED
= 3,
21
INVALID_ARGUMENT
= 4,
22
IO_ERROR
= 5,
23
DB_PATH_NOT_CREATED
= 6,
24
25
UNKNOWN
= 1000
26
};
27
}
// namespace kagome::storage
28
29
OUTCOME_HPP_DECLARE_ERROR
(
kagome::storage
,
DatabaseError
);
30
31
#endif // KAGOME_CORE_STORAGE_DATABASE_ERROR_DATABASE_ERROR_HPP
kagome::storage::DatabaseError::IO_ERROR
kagome::storage::DatabaseError::UNKNOWN
kagome::storage::DatabaseError
DatabaseError
universal database interface error
Definition:
database_error.hpp:16
kagome::storage::DatabaseError::NOT_SUPPORTED
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::storage, DatabaseError)
outcome.hpp
kagome::storage::DatabaseError::DB_PATH_NOT_CREATED
kagome::storage::DatabaseError::CORRUPTION
kagome::storage::DatabaseError::INVALID_ARGUMENT
kagome::storage::DatabaseError::OK
kagome::storage
kagome::storage::DatabaseError::NOT_FOUND
core
storage
database_error.hpp
Generated by
1.8.11