MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / HandleError

Function HandleError

src/dbwrapper.cpp:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241namespace dbwrapper_private {
242
243void HandleError(const leveldb::Status& status)
244{
245 if (status.ok())
246 return;
247 const std::string errmsg = "Fatal LevelDB error: " + status.ToString();
248 LogPrintf("%s\n", errmsg);
249 LogPrintf("You can use -debug=leveldb to get more complete diagnostic messages\n");
250 throw dbwrapper_error(errmsg);
251}
252
253const std::vector<unsigned char>& GetObfuscateKey(const CDBWrapper &w)
254{

Callers 4

ReadMethod · 0.85
ExistsMethod · 0.85
CDBWrapperMethod · 0.85
WriteBatchMethod · 0.85

Calls 3

dbwrapper_errorClass · 0.85
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected