Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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