# DataNotAvailableException Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/)

## DataNotAvailableException {#constructor-db17de41}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/constructors/constructor-db17de41/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/DataNotAvailableException.cs#L17)

```csharp
public DataNotAvailableException()
```

Initializes a new instance of the [DataNotAvailableException](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/) class.

## DataNotAvailableException(string) {#constructor-string-31c11eb3}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/constructors/constructor-string-31c11eb3/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/DataNotAvailableException.cs#L23)

```csharp
public DataNotAvailableException(string message)
```

Initializes a new instance of the [DataNotAvailableException](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/) class.

### Parameters

- `message` (`string`): The message.

## DataNotAvailableException(string, Exception) {#constructor-string-system-exception-b74222a0}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/constructors/constructor-string-system-exception-b74222a0/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/QueueAdapters/DataNotAvailableException.cs#L30)

```csharp
public DataNotAvailableException(string message, Exception inner)
```

Initializes a new instance of the [DataNotAvailableException](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.datanotavailableexception/) class.

### Parameters

- `message` (`string`): The message.
- `inner` (`Exception`): The inner.
