Hermes  0.9.5-beta
Hierarchical Distributed I/O Buffering System
hermes_status.h File Reference
#include <iostream>
Include dependency graph for hermes_status.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  api::Status
 

Namespaces

 hermes
 

Macros

#define RETURN_CODES(X)
 
#define RETURN_ENUM(ID, NAME, TEXT)   NAME = ID,
 
#define RETURN_TEXT(ID, NAME, TEXT)
 

Enumerations

enum  hermes::StatusCode {
  HERMES_OK_MAX = 2 , BLOB_IN_SWAP_PLACE = 1 , HERMES_SUCCESS = 0 , INVALID_BUCKET = -1 ,
  BUCKET_NAME_TOO_LONG = -2 , VBUCKET_NAME_TOO_LONG = -3 , BLOB_NAME_TOO_LONG = -4 , INVALID_BLOB = -5 ,
  BLOB_NOT_IN_BUCKET = -6 , BLOB_NOT_LINKED_TO_VBUCKET = -7 , TRAIT_NOT_VALID = -8 , TRAIT_EXISTS_ALREADY = -9 ,
  OFFSET_MAP_EMPTY = -10 , BLOB_NOT_LINKED_IN_MAP = -11 , BUCKET_IN_USE = -12 , DPE_RANDOM_FOUND_NO_TGT = -13 ,
  DPE_GET_INVALID_TGT = -14 , DPE_ORTOOLS_NO_SOLUTION = -15 , DPE_PLACEMENTSCHEMA_EMPTY = -16 , READ_BLOB_FAILED = -17 ,
  STDIO_OFFSET_ERROR = -18 , STDIO_FWRITE_FAILED = -19 , STDIO_FOPEN_FAILED = -20 , STDIO_FCLOSE_FAILED = -21 ,
  INVALID_FILE = -23 , PLACE_SWAP_BLOB_TO_BUF_FAILED = -24 , DPE_RR_FIND_TGT_FAILED = -25 , HERMES_ERROR_MAX = -26
}
 

Variables

return Unknown error
 
StatusCode status_
 

Macro Definition Documentation

◆ RETURN_CODES

#define RETURN_CODES (   X)

a macro for returning error code

◆ RETURN_ENUM

#define RETURN_ENUM (   ID,
  NAME,
  TEXT 
)    NAME = ID,

a macro for returning enum

◆ RETURN_TEXT

#define RETURN_TEXT (   ID,
  NAME,
  TEXT 
)
Value:
case ID: \
return TEXT;

a macro for returning text

Variable Documentation

◆ error

return Unknown error

status is unknown

◆ status_

StatusCode status_
private

StatusCode state variable