> This page is for Browser SDK, version v4 (default).
> For other versions, use one of these documentation indexes:
> - v4 (default): https://signalwire.com/docs/browser-sdk/v4/llms.txt
> - v3: https://signalwire.com/docs/browser-sdk/v3/llms.txt
> - v2: https://signalwire.com/docs/browser-sdk/v2/llms.txt

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# CollectionFetchError

> Thrown when fetching a collection page fails.

Raised when an underlying REST fetch backing a paginated collection — for example [`Address.history`](/docs/browser-sdk/v4/reference/address/history) or [`Address.textMessage`](/docs/browser-sdk/v4/reference/address/text-message) — fails. The error carries the operation name and the underlying network/HTTP error so callers can decide whether to retry, surface a UI message, or fall back to a cached view.

## **Extends**

* `Error`

## **Constructors**

### Constructor

```ts
new CollectionFetchError(operation, originalError): CollectionFetchError
```

### Parameters

**`operation`** `string` — required

Name of the collection-fetch operation that failed.

---

**`originalError`** `unknown` — required

Underlying error returned by the fetch.

---

## **Properties**

**`operation`** `string` — required

Name of the collection-fetch operation that failed.

---

**`originalError`** `unknown` — required

Underlying error returned by the fetch.

---

## **Examples**

```ts
import { CollectionFetchError } from '@signalwire/js';

address.history$.subscribe({
  next: (collection) => render(collection),
  error: (err) => {
    if (err instanceof CollectionFetchError) {
      console.error(`history fetch (${err.operation}) failed:`, err.originalError);
    }
  },
});
```