Couchbase Lite C
Couchbase Lite C API
Data Fields
CBLError Struct Reference

A struct holding information about an error. More...

#include <cbl/CBLBase.h>

Data Fields

CBLErrorDomain domain
 Domain of errors; a namespace for the code. More...
 
int code
 Error code, specific to the domain. 0 always means no error. More...
 
unsigned internal_info
 

Detailed Description

A struct holding information about an error.

It's declared on the stack by a caller, and its address is passed to an API function. If the function's return value indicates that there was an error (usually by returning NULL or false), then the CBLError will have been filled in with the details.

Field Documentation

◆ code

int CBLError::code

Error code, specific to the domain. 0 always means no error.

◆ domain

CBLErrorDomain CBLError::domain

Domain of errors; a namespace for the code.

◆ internal_info

unsigned CBLError::internal_info

The documentation for this struct was generated from the following file: