method ErrorUtils.storageError
ErrorUtils.storageError(
operation: string,
key?: string[],
cause?: Error,
): StorageError

Creates a StorageError for storage operations.

Parameters

operation: string
  • The operation that failed
optional
key: string[]
  • The storage key
optional
cause: Error
  • The underlying error

Return Type

StorageError

Usage

import { ErrorUtils } from ".";