> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.SenderRequiredError

<h2 id="autogen.SenderRequiredError" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">SenderRequiredError</span>
</h2>

```python theme={null}
SenderRequiredError(message: str = 'Sender is required but not provided.')
```

Exception raised when the sender is required but not provided.

<b>Parameters:</b>

| Name      | Description                                                                  |
| --------- | ---------------------------------------------------------------------------- |
| `message` | **Type:** str<br /><br />**Default:** 'Sender is required but not provided.' |
