React Native Storage - v2.0.0
    Preparing search index...

    The only error type this library throws or reports.

    message names the key and the reason. It never contains the stored value or its property names, which can be data too (an object keyed by email address), so an error can be logged without leaking what was being saved. Where in the value the problem is, and a schema's own messages, which can quote the value (some libraries write "received 'abc'"), are kept apart in issues.

    Hierarchy

    • Error
      • StorageError
    Index
    key: string | undefined

    The key the operation was about, without the namespace.

    issues: readonly ValidationIssue[] | undefined

    For VALIDATION_FAILED: the issues the schema reported. For UNSERIALIZABLE: one issue whose path says where in the value the problem is ([] for the value itself).

    cause?: unknown
    name: string
    message: string
    stack?: string