---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/transformers_js/exceptions/variables/E_UNSUPPORTED_MEDIA_MODALITY.md
description: >-
  Raised when a {@link @nhtio/adk!Media} instance whose modality the configured
  model cannot consume reaches the adapter under `unsupportedMediaPolicy:
  'throw'`.
---

# Variable: E\_UNSUPPORTED\_MEDIA\_MODALITY

```ts
const E_UNSUPPORTED_MEDIA_MODALITY: CreatedException<[string, string, string]>;
```

Defined in: [src/batteries/llm/transformers\_js/exceptions.ts:89](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/transformers_js/exceptions.ts#L89)

Raised when a [@nhtio/adk!Media](../../../../../common/classes/Media.md) instance whose modality the configured model cannot consume
reaches the adapter under `unsupportedMediaPolicy: 'throw'`.

## Remarks

Printf args: `[kind, mimeType, filename]`.
