Kagome
Polkadot Runtime Engine in C++17
database_error.cpp
Go to the documentation of this file.
1 
7 
10  switch (e) {
11  case E::OK:
12  return "success";
13  case E::NOT_SUPPORTED:
14  return "operation is not supported in database";
15  case E::CORRUPTION:
16  return "data corruption in database";
17  case E::INVALID_ARGUMENT:
18  return "invalid argument to database";
19  case E::IO_ERROR:
20  return "IO error in database";
21  case E::NOT_FOUND:
22  return "entry not found in database";
23  case E::DB_PATH_NOT_CREATED:
24  return "database path was not created";
25  case E::UNKNOWN:
26  break;
27  }
28 
29  return "unknown error";
30 }
DatabaseError
universal database interface error
OUTCOME_CPP_DEFINE_CATEGORY(kagome::storage, DatabaseError, e)