Skip to main content
‹ Errors
Types

Types of errors

The native details of a KeychainError.

Import
import { type KeychainErrorDetails } from '@apexnative/keychain';

KeychainErrorDetails​

type KeychainErrorDetails = {
nativeCode?: number;
nativeDomain?: string;
cause?: unknown;
};

The third argument of the KeychainError constructor: what the native side said, kept for logs.

FieldTypeDescription
nativeCodenumberThe native code: an iOS OSStatus or LAError, an Android BiometricPrompt code.
nativeDomainstringWhere nativeCode comes from, such as NSOSStatusErrorDomain.
causeunknownThe error this one was made from. Becomes the error's cause, not enumerable.

See also​