Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbSetError

Set the error code.

Declaration

CTDBRET ctdbSetError(CTHANDLE Handle, CTDBRET ErrorCode)

Description

ctdbSetError() sets the error code.

  • Handle can be any Handle inside the Session (session handle, database handle, table handle, record handle, index handle, field handle, or segment handle).
  • ErrorCode should be any valid c-treeDB API C API error code.

Returns

ctdbSetError() returns CTDBRET_OK if successful, or NULL on failure.

See also

ctdbGetError(), ctdbClearError()

TOCIndex