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

Function HandleError

src/dbwrapper.cpp:46–54  ·  view source on GitHub ↗

Handle database error by throwing dbwrapper_error exception. */

Source from the content-addressed store, hash-verified

44/** Handle database error by throwing dbwrapper_error exception.
45 */
46static void HandleError(const leveldb::Status& status)
47{
48 if (status.ok())
49 return;
50 const std::string errmsg = "Fatal LevelDB error: " + status.ToString();
51 LogError("%s", errmsg);
52 LogInfo("You can use -debug=leveldb to get more complete diagnostic messages");
53 throw dbwrapper_error(errmsg);
54}
55
56class CBitcoinLevelDBLogger : public leveldb::Logger {
57public:

Callers 4

CDBWrapperMethod · 0.85
WriteBatchMethod · 0.85
ReadImplMethod · 0.85
ExistsImplMethod · 0.85

Calls 2

dbwrapper_errorClass · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected