LiteCore
Couchbase Lite cross-platform core implementation
Loading...
Searching...
No Matches
Data Fields
C4Error Struct Reference

An error value. More...

#include <c4Error.h>

Data Fields

C4ErrorDomain domain
 
int code
 
unsigned internal_info
 

Detailed Description

An error value.

These are returned by reference from API calls whose last parameter is a C4Error*. The semantics are based on Cocoa's usage of NSError: A caller can pass NULL if it doesn't care about the error. The error is filled in only if the function fails, as indicated by its return value (e.g. false or NULL.) If the function doesn't fail, it does NOT zero out the error, so its contents should be considered uninitialized garbage.

Field Documentation

◆ code

int C4Error::code

◆ domain

C4ErrorDomain C4Error::domain

◆ internal_info

unsigned C4Error::internal_info

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