class StorageConnectionFailed
extends Error

Error thrown when a storage connection cannot be established.

Examples

Handling connection failures with retry

import { Storage, createMemory, StorageConnectionFailed } from "@anabranch/storage";

const storage = await Storage.connect(createMemory())
  .retry({ attempts: 3, delay: 1000 })
  .timeout(30_000)
  .try();

Constructors

new
StorageConnectionFailed(
message: string,
cause?: unknown,
)

Properties

name: string

Usage

import { StorageConnectionFailed } from ".";