Kagome
Polkadot Runtime Engine in C++17
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,
24 
25  UNKNOWN = 1000
26  };
27 } // namespace kagome::storage
28 
30 
31 #endif // KAGOME_CORE_STORAGE_DATABASE_ERROR_DATABASE_ERROR_HPP
DatabaseError
universal database interface error
OUTCOME_HPP_DECLARE_ERROR(kagome::storage, DatabaseError)