> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# MediaUnavailableError

> Class exported by @botmesh/core.

Defined in: [core/mediaRefs.ts:62](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/mediaRefs.ts#L62)

The media of a replayed message (durable inbox) cannot be downloaded again. Rejected by
`loadMediaOf(ctx, { throwOnError: true })`. Extends [ProviderError](https://botmesh.afaya.com.co/api/core/classes/ProviderError.md), so existing
`instanceof ProviderError` checks still match.

## Extends

* [`ProviderError`](https://botmesh.afaya.com.co/api/core/classes/ProviderError)

## Constructors

### Constructor

```ts theme={null}
new MediaUnavailableError(reason, message?): MediaUnavailableError;
```

Defined in: [core/mediaRefs.ts:63](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/mediaRefs.ts#L63)

#### Parameters

| Parameter | Type |
| - | - |
| `reason` | [`MediaUnavailableReason`](https://botmesh.afaya.com.co/api/core/type-aliases/MediaUnavailableReason) |
| `message?` | `string` |

#### Returns

`MediaUnavailableError`

#### Overrides

[`ProviderError`](https://botmesh.afaya.com.co/api/core/classes/ProviderError).[`constructor`](https://botmesh.afaya.com.co/api/core/classes/ProviderError#constructor)

## Properties

### reason

```ts theme={null}
readonly reason: MediaUnavailableReason;
```

Defined in: [core/mediaRefs.ts:63](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/mediaRefs.ts#L63)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.