Binary Raw - Docs
    Preparing search index...

    Class StorageError

    Storage-specific error with categorized error codes. Provides programmatic error handling via code property.

    Hierarchy

    • Error
      • StorageError
    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • message: string

        Human-readable error description

      • code:
            | "QUOTA_EXCEEDED"
            | "VERSION_ERROR"
            | "BLOCKED"
            | "NOT_AVAILABLE"
            | "SERIALIZATION_ERROR"
            | "UNKNOWN"

        Error category for switch/case handling

      • Optionalcause: unknown

        Original IndexedDB error (optional)

      Returns StorageError

    Properties

    cause?: unknown

    Original IndexedDB error (optional)

    code:
        | "QUOTA_EXCEEDED"
        | "VERSION_ERROR"
        | "BLOCKED"
        | "NOT_AVAILABLE"
        | "SERIALIZATION_ERROR"
        | "UNKNOWN"

    Error category for switch/case handling