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

# McpTaskUserRequiredException

> The exception that is thrown when an authenticated task store is used without a current user.

## Definition

**Assembly:** CloudNimble.McpEssentials.Core.dll

**Namespace:** CloudNimble.McpEssentials.Core.Tasks

**Inheritance:** System.InvalidOperationException

## Syntax

```csharp theme={null}
CloudNimble.McpEssentials.Core.Tasks.McpTaskUserRequiredException
```

## Summary

The exception that is thrown when an authenticated task store is used without a current user.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [McpTaskUserRequiredException](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/McpTaskUserRequiredException.md) class.

#### Syntax

```csharp theme={null}
public McpTaskUserRequiredException()
```

### &#x20;.ctor

Initializes a new instance of the [McpTaskUserRequiredException](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/McpTaskUserRequiredException.md) class with a specified error message.

#### Syntax

```csharp theme={null}
public McpTaskUserRequiredException(string message)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `message` | `string` | The message that describes the error. |

### &#x20;.ctor

Initializes a new instance of the [McpTaskUserRequiredException](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/McpTaskUserRequiredException.md) class with a specified error message and a reference to the inner exception that is the cause of this exception.

#### Syntax

```csharp theme={null}
public McpTaskUserRequiredException(string message, System.Exception innerException)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `message` | `string` | The message that describes the error. |
| `innerException` | `System.Exception` | The exception that is the cause of the current exception. |


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