libfoedus-core
FOEDUS Core Library
error_code.hpp File Reference
Include dependency graph for error_code.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 foedus
 Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
 

Macros

#define X(a, b, c)   /** b: c. */ a = b,
 
#define X_QUOTE(str)   #str
 
#define X_EXPAND_AND_QUOTE(str)   X_QUOTE(str)
 
#define X(a, b, c)   case a: return X_EXPAND_AND_QUOTE(a);
 
#define X(a, b, c)   case a: return c;
 
#define CHECK_ERROR_CODE(x)
 This macro calls x and checks its returned error code. More...
 

Enumerations

enum  foedus::ErrorCode {
  foedus::kErrorCodeOk = 0, foedus::kErrorCodeOutofmemory = 0x0001, foedus::kErrorCodeInvalidParameter = 0x0002, foedus::kErrorCodeAlreadyInitialized = 0x0003,
  foedus::kErrorCodeBatchedError = 0x0004, foedus::kErrorCodeDepedentModuleUnavailableInit = 0x0005, foedus::kErrorCodeDepedentModuleUnavailableUninit = 0x0006, foedus::kErrorCodeBeingShutdown = 0x0007,
  foedus::kErrorCodeTimeout = 0x0008, foedus::kErrorCodeNotimplemented = 0x0009, foedus::kErrorCodeSessionExpired = 0x000A, foedus::kErrorCodeUserDefined = 0x000B,
  foedus::kErrorCodeInternalError = 0x000C, foedus::kErrorCodeOsMProtectFailed = 0x000D, foedus::kErrorCodeEnvPrescreenFailed = 0x000E, foedus::kErrorCodeEngineInvalidOption = 0x0101,
  foedus::kErrorCodeFsAlreadyOpened = 0x0201, foedus::kErrorCodeFsFailedToOpen = 0x0202, foedus::kErrorCodeFsBadSeekInput = 0x0203, foedus::kErrorCodeFsSeekFailed = 0x0204,
  foedus::kErrorCodeFsBufferTooSmall = 0x0205, foedus::kErrorCodeFsBufferNotAligned = 0x0206, foedus::kErrorCodeFsTooShortRead = 0x0207, foedus::kErrorCodeFsExcessRead = 0x0208,
  foedus::kErrorCodeFsWriteFail = 0x0209, foedus::kErrorCodeFsExcessWrite = 0x020A, foedus::kErrorCodeFsNotOpened = 0x020B, foedus::kErrorCodeFsSyncFailed = 0x020C,
  foedus::kErrorCodeFsMkdirFailed = 0x020D, foedus::kErrorCodeFsTruncateFailed = 0x020E, foedus::kErrorCodeFsResultNotAligned = 0x020F, foedus::kErrorCodeMemoryNoFreePages = 0x0301,
  foedus::kErrorCodeMemoryDuplicatePage = 0x0302, foedus::kErrorCodeMemoryPagePoolTooSmall = 0x0303, foedus::kErrorCodeMemoryNumaUnavailable = 0x0304, foedus::kErrorCodeConfParseFailed = 0x0401,
  foedus::kErrorCodeConfValueOutofrange = 0x0402, foedus::kErrorCodeConfMissingElement = 0x0403, foedus::kErrorCodeConfInvalidElement = 0x0404, foedus::kErrorCodeConfEmptyXml = 0x0405,
  foedus::kErrorCodeConfFileNotFount = 0x0406, foedus::kErrorCodeConfCouldNotWrite = 0x0407, foedus::kErrorCodeConfCouldNotRename = 0x0408, foedus::kErrorCodeConfMkdirsFailed = 0x0409,
  foedus::kErrorCodeLogInvalidLoggerCount = 0x0501, foedus::kErrorCodeLogInvalidApplyType = 0x0502, foedus::kErrorCodeLogInvalidLogType = 0x0503, foedus::kErrorCodeSnapshotInvalidLogEnd = 0x0601,
  foedus::kErrorCodeSnapshotCancelled = 0x0602, foedus::kErrorCodeSnapshotExitTimeout = 0x0603, foedus::kErrorCodeSpInconsistentSavepoint = 0x0701, foedus::kErrorCodeStrDuplicateStrid = 0x0801,
  foedus::kErrorCodeStrAlreadyExists = 0x0802, foedus::kErrorCodeStrDuplicateStrname = 0x0803, foedus::kErrorCodeStrMustSeparateXct = 0x0804, foedus::kErrorCodeStrArrayInvalidOption = 0x0805,
  foedus::kErrorCodeStrWrongMetadataType = 0x0806, foedus::kErrorCodeStrUnsupportedMetadata = 0x0807, foedus::kErrorCodeStrTooLongPayload = 0x0808, foedus::kErrorCodeStrTooSmallPayloadBuffer = 0x0809,
  foedus::kErrorCodeStrTooShortPayload = 0x080A, foedus::kErrorCodeStrKeyAlreadyExists = 0x080B, foedus::kErrorCodeStrKeyNotFound = 0x080C, foedus::kErrorCodeStrHashBinsTooMany = 0x080D,
  foedus::kErrorCodeStrMasstreeRetry = 0x0811, foedus::kErrorCodeStrMasstreeTooManyRetries = 0x0812, foedus::kErrorCodeStrMasstreeFailedVerification = 0x0813, foedus::kErrorCodeStrMasstreeCursorTooDeep = 0x0814,
  foedus::kErrorCodeStrArrayFailedVerification = 0x0821, foedus::kErrorCodeStrTooManyStorages = 0x0822, foedus::kErrorCodeStrAlreadyDropped = 0x0823, foedus::kErrorCodeStrEmptyName = 0x0824,
  foedus::kErrorCodeStrPartitionerDataMemoryTooSmall = 0x0825, foedus::kErrorCodeStrTooLargeArray = 0x0826, foedus::kErrorCodeStrHashFailedVerification = 0x0827, foedus::kErrorCodeCacheNoFreePages = 0x0901,
  foedus::kErrorCodeCacheTableFull = 0x0902, foedus::kErrorCodeCacheTooManyOverflow = 0x0903, foedus::kErrorCodeXctReadSetOverflow = 0x0A01, foedus::kErrorCodeXctWriteSetOverflow = 0x0A02,
  foedus::kErrorCodeXctAlreadyRunning = 0x0A03, foedus::kErrorCodeXctNoXct = 0x0A04, foedus::kErrorCodeXctRaceAbort = 0x0A05, foedus::kErrorCodeXctPageVersionSetOverflow = 0x0A06,
  foedus::kErrorCodeXctPointerSetOverflow = 0x0A07, foedus::kErrorCodeXctUserAbort = 0x0A08, foedus::kErrorCodeXctNoMoreLocalWorkMemory = 0x0A09, foedus::kErrorCodeRecordTemperatureChange = 0x0AA0,
  foedus::kErrorCodeXctLockAbort = 0x0AA1, foedus::kErrorCodeLockCancelled = 0x0AA2, foedus::kErrorCodeLockRequested = 0x0AA3, foedus::kErrorCodeXctTwoSysXcts = 0x0AA4,
  foedus::kErrorCodeXctMustBeInSysXcts = 0x0AA5, foedus::kErrorCodeDbgGperftools = 0x0B01, foedus::kErrorCodeSocShmAllocFailed = 0x0C01, foedus::kErrorCodeSocShmAttachFailed = 0x0C02,
  foedus::kErrorCodeSocForkFailed = 0x0C03, foedus::kErrorCodeSocSpawnFailed = 0x0C04, foedus::kErrorCodeSocEmulateFailed = 0x0C05, foedus::kErrorCodeSocLaunchTimeout = 0x0C06,
  foedus::kErrorCodeSocMasterDied = 0x0C07, foedus::kErrorCodeSocMasterUnexpectedState = 0x0C08, foedus::kErrorCodeSocTerminateTimeout = 0x0C09, foedus::kErrorCodeSocTerminateFailed = 0x0C0A,
  foedus::kErrorCodeSocChildInitFailed = 0x0C0B, foedus::kErrorCodeSocChildUninitFailed = 0x0C0C, foedus::kErrorCodeProcPreRegisterTooLate = 0x0D01, foedus::kErrorCodeProcRegisterTooEarly = 0x0D02,
  foedus::kErrorCodeProcRegisterUnsupportedSocType = 0x0D03, foedus::kErrorCodeProcRegisterMasterOnly = 0x0D04, foedus::kErrorCodeProcRegisterChildOnly = 0x0D05, foedus::kErrorCodeProcNotFound = 0x0D06,
  foedus::kErrorCodeProcProcAlreadyExists = 0x0D07, foedus::kErrorCodeThrNoThreadAvailable = 0x0E01
}
 Enum of error codes defined in error_code.xmacro. More...
 

Functions

const char * foedus::get_error_name (ErrorCode code)
 Returns the names of ErrorCode enum defined in error_code.xmacro. More...
 
const char * foedus::get_error_message (ErrorCode code)
 Returns the error messages corresponding to ErrorCode enum defined in error_code.xmacro. More...
 

Macro Definition Documentation

#define X (   a,
  b,
 
)    /** b: c. */ a = b,

Definition at line 119 of file error_code.hpp.

#define X (   a,
  b,
 
)    case a: return X_EXPAND_AND_QUOTE(a);

Definition at line 119 of file error_code.hpp.

#define X (   a,
  b,
 
)    case a: return c;

Definition at line 119 of file error_code.hpp.

#define X_EXPAND_AND_QUOTE (   str)    X_QUOTE(str)

Definition at line 106 of file error_code.hpp.

#define X_QUOTE (   str)    #str

Definition at line 105 of file error_code.hpp.