# SimpleQueueCacheCursor.GetCurrent(Exception)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.simplequeuecachecursor/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.providers.streams.common.simplequeuecachecursor/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/SimpleCache/SimpleQueueCacheCursor.cs#L68-L71)

```csharp
public virtual IBatchContainer GetCurrent(out Exception exception)
```

Get the current value.

### Parameters

- `exception` (`Exception`): The resulting exception.

### Returns

Returns the current batch container. If null then the stream has completed or there was a stream error. If there was a stream error, an error exception will be provided in the output.
