SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Error.h File Reference
#include <ostream>
+ Include dependency graph for Error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SWC
 The SWC-DB C++ namespace 'SWC'.
 
 SWC::Error
 The SWC-DB Error C++ namespace 'SWC::Error'.
 

Macros

#define SWC_ERRNO_SYS_BEGIN   0
 
#define SWC_ERRNO_SYS_END   2048
 
#define SWC_ERRNO_FUTURE_BEGIN   2049
 
#define SWC_ERRNO_FUTURE_END   2059
 
#define SWC_ERRNO_EAI_BEGIN   2060
 
#define SWC_ERRNO_EAI_END   2080
 
#define SWC_ERRNO_APP_BEGIN   3000
 
#define SWC_ERRNO_APP_END   3100
 

Enumerations

enum  SWC::Error::Code : int32_t {
  SWC::Error::EXCEPTION_BAD = -4,
  SWC::Error::EXCEPTION_UNKNOWN = -3,
  SWC::Error::UNPOSSIBLE = -2,
  SWC::Error::FAILED_EXPECTATION = -1,
  SWC::Error::OK = 0,
  SWC::Error::IO_ERROR = SWC_ERRNO_APP_BEGIN + 0,
  SWC::Error::BAD_MEMORY_ALLOCATION = SWC_ERRNO_APP_BEGIN + 1,
  SWC::Error::BAD_FUNCTION = SWC_ERRNO_APP_BEGIN + 2,
  SWC::Error::BAD_POINTER = SWC_ERRNO_APP_BEGIN + 3,
  SWC::Error::BAD_CAST = SWC_ERRNO_APP_BEGIN + 4,
  SWC::Error::BAD_FORMAT = SWC_ERRNO_APP_BEGIN + 5,
  SWC::Error::BAD_REGEXP = SWC_ERRNO_APP_BEGIN + 6,
  SWC::Error::BAD_LOGIC = SWC_ERRNO_APP_BEGIN + 7,
  SWC::Error::CANCELLED = SWC_ERRNO_APP_BEGIN + 8,
  SWC::Error::NOT_ALLOWED = SWC_ERRNO_APP_BEGIN + 9,
  SWC::Error::INVALID_ARGUMENT = SWC_ERRNO_APP_BEGIN + 10,
  SWC::Error::INCOMPATIBLE_OPTIONS = SWC_ERRNO_APP_BEGIN + 11,
  SWC::Error::SERIALIZATION_INPUT_OVERRUN = SWC_ERRNO_APP_BEGIN + 12,
  SWC::Error::CHECKSUM_MISMATCH = SWC_ERRNO_APP_BEGIN + 13,
  SWC::Error::COMM_NOT_CONNECTED = SWC_ERRNO_APP_BEGIN + 14,
  SWC::Error::COMM_CONNECT_ERROR = SWC_ERRNO_APP_BEGIN + 15,
  SWC::Error::COMM_SEND_ERROR = SWC_ERRNO_APP_BEGIN + 16,
  SWC::Error::COMM_HEADER_CHECKSUM_MISMATCH = SWC_ERRNO_APP_BEGIN + 17,
  SWC::Error::COMM_BAD_HEADER = SWC_ERRNO_APP_BEGIN + 18,
  SWC::Error::PROTOCOL_ERROR = SWC_ERRNO_APP_BEGIN + 19,
  SWC::Error::REQUEST_TRUNCATED_HEADER = SWC_ERRNO_APP_BEGIN + 20,
  SWC::Error::REQUEST_TRUNCATED_PAYLOAD = SWC_ERRNO_APP_BEGIN + 21,
  SWC::Error::REQUEST_TIMEOUT = SWC_ERRNO_APP_BEGIN + 22,
  SWC::Error::NOT_IMPLEMENTED = SWC_ERRNO_APP_BEGIN + 23,
  SWC::Error::ENCODER_ENCODE = SWC_ERRNO_APP_BEGIN + 24,
  SWC::Error::ENCODER_DECODE = SWC_ERRNO_APP_BEGIN + 25,
  SWC::Error::CONFIG_BAD_CFG_FILE = SWC_ERRNO_APP_BEGIN + 26,
  SWC::Error::CONFIG_GET_ERROR = SWC_ERRNO_APP_BEGIN + 27,
  SWC::Error::CONFIG_BAD_VALUE = SWC_ERRNO_APP_BEGIN + 28,
  SWC::Error::SERVER_NOT_READY = SWC_ERRNO_APP_BEGIN + 29,
  SWC::Error::SERVER_SHUTTING_DOWN = SWC_ERRNO_APP_BEGIN + 30,
  SWC::Error::SERVER_MEMORY_LOW = SWC_ERRNO_APP_BEGIN + 31,
  SWC::Error::MNGR_NOT_ACTIVE = SWC_ERRNO_APP_BEGIN + 32,
  SWC::Error::MNGR_NOT_INITIALIZED = SWC_ERRNO_APP_BEGIN + 33,
  SWC::Error::RGR_NOT_READY = SWC_ERRNO_APP_BEGIN + 34,
  SWC::Error::RGR_NOT_LOADED_RANGE = SWC_ERRNO_APP_BEGIN + 35,
  SWC::Error::RGR_DELETED_RANGE = SWC_ERRNO_APP_BEGIN + 36,
  SWC::Error::FS_BAD_FILE_HANDLE = SWC_ERRNO_APP_BEGIN + 37,
  SWC::Error::FS_PERMISSION_DENIED = SWC_ERRNO_APP_BEGIN + 38,
  SWC::Error::FS_EOF = SWC_ERRNO_APP_BEGIN + 39,
  SWC::Error::FS_PATH_NOT_FOUND = SWC_ERRNO_APP_BEGIN + 40,
  SWC::Error::COLUMN_NOT_READY = SWC_ERRNO_APP_BEGIN + 41,
  SWC::Error::COLUMN_NOT_EXISTS = SWC_ERRNO_APP_BEGIN + 42,
  SWC::Error::COLUMN_REACHED_ID_LIMIT = SWC_ERRNO_APP_BEGIN + 43,
  SWC::Error::COLUMN_MARKED_REMOVED = SWC_ERRNO_APP_BEGIN + 44,
  SWC::Error::COLUMN_UNKNOWN_GET_FLAG = SWC_ERRNO_APP_BEGIN + 45,
  SWC::Error::COLUMN_SCHEMA_NAME_EXISTS = SWC_ERRNO_APP_BEGIN + 46,
  SWC::Error::COLUMN_SCHEMA_NAME_NOT_EXISTS = SWC_ERRNO_APP_BEGIN + 47,
  SWC::Error::COLUMN_SCHEMA_BAD_SAVE = SWC_ERRNO_APP_BEGIN + 48,
  SWC::Error::COLUMN_SCHEMA_NAME_EMPTY = SWC_ERRNO_APP_BEGIN + 49,
  SWC::Error::COLUMN_SCHEMA_NAME_NOT_CORRES = SWC_ERRNO_APP_BEGIN + 50,
  SWC::Error::COLUMN_SCHEMA_ID_EMPTY = SWC_ERRNO_APP_BEGIN + 51,
  SWC::Error::COLUMN_SCHEMA_ID_EXISTS = SWC_ERRNO_APP_BEGIN + 52,
  SWC::Error::COLUMN_SCHEMA_NOT_DIFFERENT = SWC_ERRNO_APP_BEGIN + 53,
  SWC::Error::COLUMN_SCHEMA_MISSING = SWC_ERRNO_APP_BEGIN + 54,
  SWC::Error::COLUMN_SCHEMA_IS_SYSTEM = SWC_ERRNO_APP_BEGIN + 55,
  SWC::Error::COLUMN_CHANGE_INCOMPATIBLE = SWC_ERRNO_APP_BEGIN + 56,
  SWC::Error::RANGE_NOT_FOUND = SWC_ERRNO_APP_BEGIN + 57,
  SWC::Error::RANGE_CELLSTORES = SWC_ERRNO_APP_BEGIN + 58,
  SWC::Error::RANGE_COMMITLOG = SWC_ERRNO_APP_BEGIN + 59,
  SWC::Error::RANGE_BAD_INTERVAL = SWC_ERRNO_APP_BEGIN + 60,
  SWC::Error::RANGE_BAD_CELLS_INPUT = SWC_ERRNO_APP_BEGIN + 61,
  SWC::Error::SQL_PARSE_ERROR = SWC_ERRNO_APP_BEGIN + 62,
  SWC::Error::SQL_BAD_LOAD_FILE_FORMAT = SWC_ERRNO_APP_BEGIN + 63,
  SWC::Error::CLIENT_DATA_REMAINED = SWC_ERRNO_APP_BEGIN + 64,
  SWC::Error::CLIENT_MISMATCHED_CID = SWC_ERRNO_APP_BEGIN + 65,
  SWC::Error::CLIENT_STOPPING = SWC_ERRNO_APP_BEGIN + 66
}
 

Functions

const char * SWC::Error::get_text (const int err) noexcept
 
void SWC::Error::print (std::ostream &out, int err)
 

Macro Definition Documentation

◆ SWC_ERRNO_APP_BEGIN

#define SWC_ERRNO_APP_BEGIN   3000

Definition at line 34 of file Error.h.

◆ SWC_ERRNO_APP_END

#define SWC_ERRNO_APP_END   3100

Definition at line 35 of file Error.h.

◆ SWC_ERRNO_EAI_BEGIN

#define SWC_ERRNO_EAI_BEGIN   2060

Definition at line 31 of file Error.h.

◆ SWC_ERRNO_EAI_END

#define SWC_ERRNO_EAI_END   2080

Definition at line 32 of file Error.h.

◆ SWC_ERRNO_FUTURE_BEGIN

#define SWC_ERRNO_FUTURE_BEGIN   2049

Definition at line 28 of file Error.h.

◆ SWC_ERRNO_FUTURE_END

#define SWC_ERRNO_FUTURE_END   2059

Definition at line 29 of file Error.h.

◆ SWC_ERRNO_SYS_BEGIN

#define SWC_ERRNO_SYS_BEGIN   0

Definition at line 25 of file Error.h.

◆ SWC_ERRNO_SYS_END

#define SWC_ERRNO_SYS_END   2048

Definition at line 26 of file Error.h.