Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
chainbase::chainbase_error_category Class Reference

#include <pinnable_mapped_file.hpp>

Inheritance diagram for chainbase::chainbase_error_category:
Collaboration diagram for chainbase::chainbase_error_category:

Public Member Functions

const char * name () const noexcept override
 
std::string message (int ev) const override
 

Detailed Description

Definition at line 34 of file pinnable_mapped_file.hpp.

Member Function Documentation

◆ message()

std::string chainbase::chainbase_error_category::message ( int ev) const
override

Definition at line 19 of file pinnable_mapped_file.cpp.

19 {
20 switch(ev) {
22 return "Ok";
24 return "Database dirty flag set";
26 return "Database incompatible; All environment parameters must match";
28 return "Database format not compatible with this version of chainbase";
30 return "Database file not found";
32 return "Bad size";
34 return "Heap and locked mode are not supported on win32";
36 return "Failed to read DB header";
38 return "Could not gain write access to the shared memory file";
40 return "Database load aborted";
42 return "Failed to mlock database";
43 default:
44 return "Unrecognized error code";
45 }
46}

◆ name()

const char * chainbase::chainbase_error_category::name ( ) const
overridenoexcept

Definition at line 15 of file pinnable_mapped_file.cpp.

15 {
16 return "chainbase";
17}

The documentation for this class was generated from the following files: